1
2
3
4
5
6
7 package com.linecorp.centraldogma.internal.thrift;
8
9 import org.apache.thrift.scheme.IScheme;
10 import org.apache.thrift.scheme.SchemeFactory;
11 import org.apache.thrift.scheme.StandardScheme;
12
13 import org.apache.thrift.scheme.TupleScheme;
14 import org.apache.thrift.protocol.TTupleProtocol;
15 import org.apache.thrift.protocol.TProtocolException;
16 import org.apache.thrift.EncodingUtils;
17 import org.apache.thrift.TException;
18 import org.apache.thrift.async.AsyncMethodCallback;
19 import org.apache.thrift.server.AbstractNonblockingServer.*;
20 import java.util.List;
21 import java.util.ArrayList;
22 import java.util.Map;
23 import java.util.HashMap;
24 import java.util.EnumMap;
25 import java.util.Set;
26 import java.util.HashSet;
27 import java.util.EnumSet;
28 import java.util.Collections;
29 import java.util.BitSet;
30 import java.nio.ByteBuffer;
31 import java.util.Arrays;
32 import javax.annotation.Generated;
33 import org.slf4j.Logger;
34 import org.slf4j.LoggerFactory;
35
36 @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
37 @Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2019-3-11")
38 public class CentralDogmaService {
39
40
41
42
43 public interface Iface {
44
45
46
47
48
49
50 public void createProject(String name) throws CentralDogmaException, org.apache.thrift.TException;
51
52
53
54
55
56
57 public void removeProject(String name) throws CentralDogmaException, org.apache.thrift.TException;
58
59
60
61
62
63
64 public void unremoveProject(String name) throws CentralDogmaException, org.apache.thrift.TException;
65
66
67
68
69 public List<Project> listProjects() throws CentralDogmaException, org.apache.thrift.TException;
70
71
72
73
74 public Set<String> listRemovedProjects() throws CentralDogmaException, org.apache.thrift.TException;
75
76
77
78
79
80
81
82 public void createRepository(String projectName, String repositoryName) throws CentralDogmaException, org.apache.thrift.TException;
83
84
85
86
87
88
89
90 public void removeRepository(String projectName, String repositoryName) throws CentralDogmaException, org.apache.thrift.TException;
91
92
93
94
95
96
97
98 public void unremoveRepository(String projectName, String repositoryName) throws CentralDogmaException, org.apache.thrift.TException;
99
100
101
102
103
104
105 public List<Repository> listRepositories(String projectName) throws CentralDogmaException, org.apache.thrift.TException;
106
107
108
109
110
111
112 public Set<String> listRemovedRepositories(String projectName) throws CentralDogmaException, org.apache.thrift.TException;
113
114
115
116
117
118
119
120
121 public Revision normalizeRevision(String projectName, String repositoryName, Revision revision) throws CentralDogmaException, org.apache.thrift.TException;
122
123
124
125
126
127
128
129
130
131 public List<Entry> listFiles(String projectName, String repositoryName, Revision revision, String pathPattern) throws CentralDogmaException, org.apache.thrift.TException;
132
133
134
135
136
137
138
139
140
141 public List<Entry> getFiles(String projectName, String repositoryName, Revision revision, String pathPattern) throws CentralDogmaException, org.apache.thrift.TException;
142
143
144
145
146
147
148
149
150
151
152 public List<Commit> getHistory(String projectName, String repositoryName, Revision from, Revision to, String pathPattern) throws CentralDogmaException, org.apache.thrift.TException;
153
154
155
156
157
158
159
160
161
162
163 public List<Change> getDiffs(String projectName, String repositoryName, Revision from, Revision to, String pathPattern) throws CentralDogmaException, org.apache.thrift.TException;
164
165
166
167
168
169
170
171
172
173 public List<Change> getPreviewDiffs(String projectName, String repositoryName, Revision baseRevision, List<Change> changes) throws CentralDogmaException, org.apache.thrift.TException;
174
175
176
177
178
179
180
181
182
183
184
185
186 public Commit push(String projectName, String repositoryName, Revision baseRevision, Author author, String summary, Comment detail, List<Change> changes) throws CentralDogmaException, org.apache.thrift.TException;
187
188
189
190
191
192
193
194
195
196 public GetFileResult getFile(String projectName, String repositoryName, Revision revision, Query query) throws CentralDogmaException, org.apache.thrift.TException;
197
198
199
200
201
202
203
204
205
206
207 public DiffFileResult diffFile(String projectName, String repositoryName, Revision from, Revision to, Query query) throws CentralDogmaException, org.apache.thrift.TException;
208
209
210
211
212
213
214
215
216
217
218
219 public MergedEntry mergeFiles(String projectName, String repositoryName, Revision revision, MergeQuery mergeQuery) throws CentralDogmaException, org.apache.thrift.TException;
220
221
222
223
224
225
226
227
228
229
230 public WatchRepositoryResult watchRepository(String projectName, String repositoryName, Revision lastKnownRevision, String pathPattern, long timeoutMillis) throws CentralDogmaException, org.apache.thrift.TException;
231
232
233
234
235
236
237
238
239
240
241 public WatchFileResult watchFile(String projectName, String repositoryName, Revision lastKnownRevision, Query query, long timeoutMillis) throws CentralDogmaException, org.apache.thrift.TException;
242
243
244
245
246
247
248 public Schema getSchema(String projectName) throws CentralDogmaException, org.apache.thrift.TException;
249
250
251
252
253
254
255
256 public void saveSchema(String projectName, Schema schema) throws CentralDogmaException, org.apache.thrift.TException;
257
258
259
260
261
262
263
264 public NamedQuery getNamedQuery(String projectName, String name) throws CentralDogmaException, org.apache.thrift.TException;
265
266
267
268
269
270
271
272 public void saveNamedQuery(String projectName, NamedQuery namedQuery) throws CentralDogmaException, org.apache.thrift.TException;
273
274
275
276
277
278
279
280 public void removeNamedQuery(String projectName, String name) throws CentralDogmaException, org.apache.thrift.TException;
281
282
283
284
285
286
287 public List<NamedQuery> listNamedQueries(String projectName) throws CentralDogmaException, org.apache.thrift.TException;
288
289
290
291
292
293
294
295 public Plugin getPlugin(String projectName, String pluginName) throws CentralDogmaException, org.apache.thrift.TException;
296
297
298
299
300
301
302
303 public void savePlugin(String projectName, Plugin plugin) throws CentralDogmaException, org.apache.thrift.TException;
304
305
306
307
308
309
310
311 public void removePlugin(String projectName, String pluginName) throws CentralDogmaException, org.apache.thrift.TException;
312
313
314
315
316
317
318 public List<Plugin> listPlugins(String projectName) throws CentralDogmaException, org.apache.thrift.TException;
319
320
321
322
323
324
325 public List<PluginOperation> listPluginOperations(String projectName) throws CentralDogmaException, org.apache.thrift.TException;
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350 public String performPluginOperation(String projectName, String pluginName, String operationName, String params) throws CentralDogmaException, org.apache.thrift.TException;
351
352
353
354
355
356
357
358
359 public String queryByNamedQuery(String projectName, String namedQuery, Revision revision) throws CentralDogmaException, org.apache.thrift.TException;
360
361
362
363
364
365
366
367
368 public List<Subscriber> listSubscribers(String projectName, String repositoryName, String path) throws CentralDogmaException, org.apache.thrift.TException;
369
370 }
371
372 public interface AsyncIface {
373
374 public void createProject(String name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
375
376 public void removeProject(String name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
377
378 public void unremoveProject(String name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
379
380 public void listProjects(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
381
382 public void listRemovedProjects(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
383
384 public void createRepository(String projectName, String repositoryName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
385
386 public void removeRepository(String projectName, String repositoryName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
387
388 public void unremoveRepository(String projectName, String repositoryName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
389
390 public void listRepositories(String projectName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
391
392 public void listRemovedRepositories(String projectName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
393
394 public void normalizeRevision(String projectName, String repositoryName, Revision revision, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
395
396 public void listFiles(String projectName, String repositoryName, Revision revision, String pathPattern, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
397
398 public void getFiles(String projectName, String repositoryName, Revision revision, String pathPattern, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
399
400 public void getHistory(String projectName, String repositoryName, Revision from, Revision to, String pathPattern, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
401
402 public void getDiffs(String projectName, String repositoryName, Revision from, Revision to, String pathPattern, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
403
404 public void getPreviewDiffs(String projectName, String repositoryName, Revision baseRevision, List<Change> changes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
405
406 public void push(String projectName, String repositoryName, Revision baseRevision, Author author, String summary, Comment detail, List<Change> changes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
407
408 public void getFile(String projectName, String repositoryName, Revision revision, Query query, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
409
410 public void diffFile(String projectName, String repositoryName, Revision from, Revision to, Query query, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
411
412 public void mergeFiles(String projectName, String repositoryName, Revision revision, MergeQuery mergeQuery, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
413
414 public void watchRepository(String projectName, String repositoryName, Revision lastKnownRevision, String pathPattern, long timeoutMillis, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
415
416 public void watchFile(String projectName, String repositoryName, Revision lastKnownRevision, Query query, long timeoutMillis, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
417
418 public void getSchema(String projectName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
419
420 public void saveSchema(String projectName, Schema schema, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
421
422 public void getNamedQuery(String projectName, String name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
423
424 public void saveNamedQuery(String projectName, NamedQuery namedQuery, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
425
426 public void removeNamedQuery(String projectName, String name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
427
428 public void listNamedQueries(String projectName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
429
430 public void getPlugin(String projectName, String pluginName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
431
432 public void savePlugin(String projectName, Plugin plugin, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
433
434 public void removePlugin(String projectName, String pluginName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
435
436 public void listPlugins(String projectName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
437
438 public void listPluginOperations(String projectName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
439
440 public void performPluginOperation(String projectName, String pluginName, String operationName, String params, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
441
442 public void queryByNamedQuery(String projectName, String namedQuery, Revision revision, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
443
444 public void listSubscribers(String projectName, String repositoryName, String path, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
445
446 }
447
448 public static class Client extends org.apache.thrift.TServiceClient implements Iface {
449 public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
450 public Factory() {}
451 public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
452 return new Client(prot);
453 }
454 public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
455 return new Client(iprot, oprot);
456 }
457 }
458
459 public Client(org.apache.thrift.protocol.TProtocol prot)
460 {
461 super(prot, prot);
462 }
463
464 public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
465 super(iprot, oprot);
466 }
467
468 public void createProject(String name) throws CentralDogmaException, org.apache.thrift.TException
469 {
470 send_createProject(name);
471 recv_createProject();
472 }
473
474 public void send_createProject(String name) throws org.apache.thrift.TException
475 {
476 createProject_args args = new createProject_args();
477 args.setName(name);
478 sendBase("createProject", args);
479 }
480
481 public void recv_createProject() throws CentralDogmaException, org.apache.thrift.TException
482 {
483 createProject_result result = new createProject_result();
484 receiveBase(result, "createProject");
485 if (result.e != null) {
486 throw result.e;
487 }
488 return;
489 }
490
491 public void removeProject(String name) throws CentralDogmaException, org.apache.thrift.TException
492 {
493 send_removeProject(name);
494 recv_removeProject();
495 }
496
497 public void send_removeProject(String name) throws org.apache.thrift.TException
498 {
499 removeProject_args args = new removeProject_args();
500 args.setName(name);
501 sendBase("removeProject", args);
502 }
503
504 public void recv_removeProject() throws CentralDogmaException, org.apache.thrift.TException
505 {
506 removeProject_result result = new removeProject_result();
507 receiveBase(result, "removeProject");
508 if (result.e != null) {
509 throw result.e;
510 }
511 return;
512 }
513
514 public void unremoveProject(String name) throws CentralDogmaException, org.apache.thrift.TException
515 {
516 send_unremoveProject(name);
517 recv_unremoveProject();
518 }
519
520 public void send_unremoveProject(String name) throws org.apache.thrift.TException
521 {
522 unremoveProject_args args = new unremoveProject_args();
523 args.setName(name);
524 sendBase("unremoveProject", args);
525 }
526
527 public void recv_unremoveProject() throws CentralDogmaException, org.apache.thrift.TException
528 {
529 unremoveProject_result result = new unremoveProject_result();
530 receiveBase(result, "unremoveProject");
531 if (result.e != null) {
532 throw result.e;
533 }
534 return;
535 }
536
537 public List<Project> listProjects() throws CentralDogmaException, org.apache.thrift.TException
538 {
539 send_listProjects();
540 return recv_listProjects();
541 }
542
543 public void send_listProjects() throws org.apache.thrift.TException
544 {
545 listProjects_args args = new listProjects_args();
546 sendBase("listProjects", args);
547 }
548
549 public List<Project> recv_listProjects() throws CentralDogmaException, org.apache.thrift.TException
550 {
551 listProjects_result result = new listProjects_result();
552 receiveBase(result, "listProjects");
553 if (result.isSetSuccess()) {
554 return result.success;
555 }
556 if (result.e != null) {
557 throw result.e;
558 }
559 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "listProjects failed: unknown result");
560 }
561
562 public Set<String> listRemovedProjects() throws CentralDogmaException, org.apache.thrift.TException
563 {
564 send_listRemovedProjects();
565 return recv_listRemovedProjects();
566 }
567
568 public void send_listRemovedProjects() throws org.apache.thrift.TException
569 {
570 listRemovedProjects_args args = new listRemovedProjects_args();
571 sendBase("listRemovedProjects", args);
572 }
573
574 public Set<String> recv_listRemovedProjects() throws CentralDogmaException, org.apache.thrift.TException
575 {
576 listRemovedProjects_result result = new listRemovedProjects_result();
577 receiveBase(result, "listRemovedProjects");
578 if (result.isSetSuccess()) {
579 return result.success;
580 }
581 if (result.e != null) {
582 throw result.e;
583 }
584 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "listRemovedProjects failed: unknown result");
585 }
586
587 public void createRepository(String projectName, String repositoryName) throws CentralDogmaException, org.apache.thrift.TException
588 {
589 send_createRepository(projectName, repositoryName);
590 recv_createRepository();
591 }
592
593 public void send_createRepository(String projectName, String repositoryName) throws org.apache.thrift.TException
594 {
595 createRepository_args args = new createRepository_args();
596 args.setProjectName(projectName);
597 args.setRepositoryName(repositoryName);
598 sendBase("createRepository", args);
599 }
600
601 public void recv_createRepository() throws CentralDogmaException, org.apache.thrift.TException
602 {
603 createRepository_result result = new createRepository_result();
604 receiveBase(result, "createRepository");
605 if (result.e != null) {
606 throw result.e;
607 }
608 return;
609 }
610
611 public void removeRepository(String projectName, String repositoryName) throws CentralDogmaException, org.apache.thrift.TException
612 {
613 send_removeRepository(projectName, repositoryName);
614 recv_removeRepository();
615 }
616
617 public void send_removeRepository(String projectName, String repositoryName) throws org.apache.thrift.TException
618 {
619 removeRepository_args args = new removeRepository_args();
620 args.setProjectName(projectName);
621 args.setRepositoryName(repositoryName);
622 sendBase("removeRepository", args);
623 }
624
625 public void recv_removeRepository() throws CentralDogmaException, org.apache.thrift.TException
626 {
627 removeRepository_result result = new removeRepository_result();
628 receiveBase(result, "removeRepository");
629 if (result.e != null) {
630 throw result.e;
631 }
632 return;
633 }
634
635 public void unremoveRepository(String projectName, String repositoryName) throws CentralDogmaException, org.apache.thrift.TException
636 {
637 send_unremoveRepository(projectName, repositoryName);
638 recv_unremoveRepository();
639 }
640
641 public void send_unremoveRepository(String projectName, String repositoryName) throws org.apache.thrift.TException
642 {
643 unremoveRepository_args args = new unremoveRepository_args();
644 args.setProjectName(projectName);
645 args.setRepositoryName(repositoryName);
646 sendBase("unremoveRepository", args);
647 }
648
649 public void recv_unremoveRepository() throws CentralDogmaException, org.apache.thrift.TException
650 {
651 unremoveRepository_result result = new unremoveRepository_result();
652 receiveBase(result, "unremoveRepository");
653 if (result.e != null) {
654 throw result.e;
655 }
656 return;
657 }
658
659 public List<Repository> listRepositories(String projectName) throws CentralDogmaException, org.apache.thrift.TException
660 {
661 send_listRepositories(projectName);
662 return recv_listRepositories();
663 }
664
665 public void send_listRepositories(String projectName) throws org.apache.thrift.TException
666 {
667 listRepositories_args args = new listRepositories_args();
668 args.setProjectName(projectName);
669 sendBase("listRepositories", args);
670 }
671
672 public List<Repository> recv_listRepositories() throws CentralDogmaException, org.apache.thrift.TException
673 {
674 listRepositories_result result = new listRepositories_result();
675 receiveBase(result, "listRepositories");
676 if (result.isSetSuccess()) {
677 return result.success;
678 }
679 if (result.e != null) {
680 throw result.e;
681 }
682 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "listRepositories failed: unknown result");
683 }
684
685 public Set<String> listRemovedRepositories(String projectName) throws CentralDogmaException, org.apache.thrift.TException
686 {
687 send_listRemovedRepositories(projectName);
688 return recv_listRemovedRepositories();
689 }
690
691 public void send_listRemovedRepositories(String projectName) throws org.apache.thrift.TException
692 {
693 listRemovedRepositories_args args = new listRemovedRepositories_args();
694 args.setProjectName(projectName);
695 sendBase("listRemovedRepositories", args);
696 }
697
698 public Set<String> recv_listRemovedRepositories() throws CentralDogmaException, org.apache.thrift.TException
699 {
700 listRemovedRepositories_result result = new listRemovedRepositories_result();
701 receiveBase(result, "listRemovedRepositories");
702 if (result.isSetSuccess()) {
703 return result.success;
704 }
705 if (result.e != null) {
706 throw result.e;
707 }
708 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "listRemovedRepositories failed: unknown result");
709 }
710
711 public Revision normalizeRevision(String projectName, String repositoryName, Revision revision) throws CentralDogmaException, org.apache.thrift.TException
712 {
713 send_normalizeRevision(projectName, repositoryName, revision);
714 return recv_normalizeRevision();
715 }
716
717 public void send_normalizeRevision(String projectName, String repositoryName, Revision revision) throws org.apache.thrift.TException
718 {
719 normalizeRevision_args args = new normalizeRevision_args();
720 args.setProjectName(projectName);
721 args.setRepositoryName(repositoryName);
722 args.setRevision(revision);
723 sendBase("normalizeRevision", args);
724 }
725
726 public Revision recv_normalizeRevision() throws CentralDogmaException, org.apache.thrift.TException
727 {
728 normalizeRevision_result result = new normalizeRevision_result();
729 receiveBase(result, "normalizeRevision");
730 if (result.isSetSuccess()) {
731 return result.success;
732 }
733 if (result.e != null) {
734 throw result.e;
735 }
736 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "normalizeRevision failed: unknown result");
737 }
738
739 public List<Entry> listFiles(String projectName, String repositoryName, Revision revision, String pathPattern) throws CentralDogmaException, org.apache.thrift.TException
740 {
741 send_listFiles(projectName, repositoryName, revision, pathPattern);
742 return recv_listFiles();
743 }
744
745 public void send_listFiles(String projectName, String repositoryName, Revision revision, String pathPattern) throws org.apache.thrift.TException
746 {
747 listFiles_args args = new listFiles_args();
748 args.setProjectName(projectName);
749 args.setRepositoryName(repositoryName);
750 args.setRevision(revision);
751 args.setPathPattern(pathPattern);
752 sendBase("listFiles", args);
753 }
754
755 public List<Entry> recv_listFiles() throws CentralDogmaException, org.apache.thrift.TException
756 {
757 listFiles_result result = new listFiles_result();
758 receiveBase(result, "listFiles");
759 if (result.isSetSuccess()) {
760 return result.success;
761 }
762 if (result.e != null) {
763 throw result.e;
764 }
765 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "listFiles failed: unknown result");
766 }
767
768 public List<Entry> getFiles(String projectName, String repositoryName, Revision revision, String pathPattern) throws CentralDogmaException, org.apache.thrift.TException
769 {
770 send_getFiles(projectName, repositoryName, revision, pathPattern);
771 return recv_getFiles();
772 }
773
774 public void send_getFiles(String projectName, String repositoryName, Revision revision, String pathPattern) throws org.apache.thrift.TException
775 {
776 getFiles_args args = new getFiles_args();
777 args.setProjectName(projectName);
778 args.setRepositoryName(repositoryName);
779 args.setRevision(revision);
780 args.setPathPattern(pathPattern);
781 sendBase("getFiles", args);
782 }
783
784 public List<Entry> recv_getFiles() throws CentralDogmaException, org.apache.thrift.TException
785 {
786 getFiles_result result = new getFiles_result();
787 receiveBase(result, "getFiles");
788 if (result.isSetSuccess()) {
789 return result.success;
790 }
791 if (result.e != null) {
792 throw result.e;
793 }
794 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getFiles failed: unknown result");
795 }
796
797 public List<Commit> getHistory(String projectName, String repositoryName, Revision from, Revision to, String pathPattern) throws CentralDogmaException, org.apache.thrift.TException
798 {
799 send_getHistory(projectName, repositoryName, from, to, pathPattern);
800 return recv_getHistory();
801 }
802
803 public void send_getHistory(String projectName, String repositoryName, Revision from, Revision to, String pathPattern) throws org.apache.thrift.TException
804 {
805 getHistory_args args = new getHistory_args();
806 args.setProjectName(projectName);
807 args.setRepositoryName(repositoryName);
808 args.setFromRevision(from);
809 args.setToRevision(to);
810 args.setPathPattern(pathPattern);
811 sendBase("getHistory", args);
812 }
813
814 public List<Commit> recv_getHistory() throws CentralDogmaException, org.apache.thrift.TException
815 {
816 getHistory_result result = new getHistory_result();
817 receiveBase(result, "getHistory");
818 if (result.isSetSuccess()) {
819 return result.success;
820 }
821 if (result.e != null) {
822 throw result.e;
823 }
824 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getHistory failed: unknown result");
825 }
826
827 public List<Change> getDiffs(String projectName, String repositoryName, Revision from, Revision to, String pathPattern) throws CentralDogmaException, org.apache.thrift.TException
828 {
829 send_getDiffs(projectName, repositoryName, from, to, pathPattern);
830 return recv_getDiffs();
831 }
832
833 public void send_getDiffs(String projectName, String repositoryName, Revision from, Revision to, String pathPattern) throws org.apache.thrift.TException
834 {
835 getDiffs_args args = new getDiffs_args();
836 args.setProjectName(projectName);
837 args.setRepositoryName(repositoryName);
838 args.setFromRevision(from);
839 args.setToRevision(to);
840 args.setPathPattern(pathPattern);
841 sendBase("getDiffs", args);
842 }
843
844 public List<Change> recv_getDiffs() throws CentralDogmaException, org.apache.thrift.TException
845 {
846 getDiffs_result result = new getDiffs_result();
847 receiveBase(result, "getDiffs");
848 if (result.isSetSuccess()) {
849 return result.success;
850 }
851 if (result.e != null) {
852 throw result.e;
853 }
854 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getDiffs failed: unknown result");
855 }
856
857 public List<Change> getPreviewDiffs(String projectName, String repositoryName, Revision baseRevision, List<Change> changes) throws CentralDogmaException, org.apache.thrift.TException
858 {
859 send_getPreviewDiffs(projectName, repositoryName, baseRevision, changes);
860 return recv_getPreviewDiffs();
861 }
862
863 public void send_getPreviewDiffs(String projectName, String repositoryName, Revision baseRevision, List<Change> changes) throws org.apache.thrift.TException
864 {
865 getPreviewDiffs_args args = new getPreviewDiffs_args();
866 args.setProjectName(projectName);
867 args.setRepositoryName(repositoryName);
868 args.setBaseRevision(baseRevision);
869 args.setChanges(changes);
870 sendBase("getPreviewDiffs", args);
871 }
872
873 public List<Change> recv_getPreviewDiffs() throws CentralDogmaException, org.apache.thrift.TException
874 {
875 getPreviewDiffs_result result = new getPreviewDiffs_result();
876 receiveBase(result, "getPreviewDiffs");
877 if (result.isSetSuccess()) {
878 return result.success;
879 }
880 if (result.e != null) {
881 throw result.e;
882 }
883 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPreviewDiffs failed: unknown result");
884 }
885
886 public Commit push(String projectName, String repositoryName, Revision baseRevision, Author author, String summary, Comment detail, List<Change> changes) throws CentralDogmaException, org.apache.thrift.TException
887 {
888 send_push(projectName, repositoryName, baseRevision, author, summary, detail, changes);
889 return recv_push();
890 }
891
892 public void send_push(String projectName, String repositoryName, Revision baseRevision, Author author, String summary, Comment detail, List<Change> changes) throws org.apache.thrift.TException
893 {
894 push_args args = new push_args();
895 args.setProjectName(projectName);
896 args.setRepositoryName(repositoryName);
897 args.setBaseRevision(baseRevision);
898 args.setAuthor(author);
899 args.setSummary(summary);
900 args.setDetail(detail);
901 args.setChanges(changes);
902 sendBase("push", args);
903 }
904
905 public Commit recv_push() throws CentralDogmaException, org.apache.thrift.TException
906 {
907 push_result result = new push_result();
908 receiveBase(result, "push");
909 if (result.isSetSuccess()) {
910 return result.success;
911 }
912 if (result.e != null) {
913 throw result.e;
914 }
915 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "push failed: unknown result");
916 }
917
918 public GetFileResult getFile(String projectName, String repositoryName, Revision revision, Query query) throws CentralDogmaException, org.apache.thrift.TException
919 {
920 send_getFile(projectName, repositoryName, revision, query);
921 return recv_getFile();
922 }
923
924 public void send_getFile(String projectName, String repositoryName, Revision revision, Query query) throws org.apache.thrift.TException
925 {
926 getFile_args args = new getFile_args();
927 args.setProjectName(projectName);
928 args.setRepositoryName(repositoryName);
929 args.setRevision(revision);
930 args.setQuery(query);
931 sendBase("getFile", args);
932 }
933
934 public GetFileResult recv_getFile() throws CentralDogmaException, org.apache.thrift.TException
935 {
936 getFile_result result = new getFile_result();
937 receiveBase(result, "getFile");
938 if (result.isSetSuccess()) {
939 return result.success;
940 }
941 if (result.e != null) {
942 throw result.e;
943 }
944 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getFile failed: unknown result");
945 }
946
947 public DiffFileResult diffFile(String projectName, String repositoryName, Revision from, Revision to, Query query) throws CentralDogmaException, org.apache.thrift.TException
948 {
949 send_diffFile(projectName, repositoryName, from, to, query);
950 return recv_diffFile();
951 }
952
953 public void send_diffFile(String projectName, String repositoryName, Revision from, Revision to, Query query) throws org.apache.thrift.TException
954 {
955 diffFile_args args = new diffFile_args();
956 args.setProjectName(projectName);
957 args.setRepositoryName(repositoryName);
958 args.setFromRevision(from);
959 args.setToRevision(to);
960 args.setQuery(query);
961 sendBase("diffFile", args);
962 }
963
964 public DiffFileResult recv_diffFile() throws CentralDogmaException, org.apache.thrift.TException
965 {
966 diffFile_result result = new diffFile_result();
967 receiveBase(result, "diffFile");
968 if (result.isSetSuccess()) {
969 return result.success;
970 }
971 if (result.e != null) {
972 throw result.e;
973 }
974 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "diffFile failed: unknown result");
975 }
976
977 public MergedEntry mergeFiles(String projectName, String repositoryName, Revision revision, MergeQuery mergeQuery) throws CentralDogmaException, org.apache.thrift.TException
978 {
979 send_mergeFiles(projectName, repositoryName, revision, mergeQuery);
980 return recv_mergeFiles();
981 }
982
983 public void send_mergeFiles(String projectName, String repositoryName, Revision revision, MergeQuery mergeQuery) throws org.apache.thrift.TException
984 {
985 mergeFiles_args args = new mergeFiles_args();
986 args.setProjectName(projectName);
987 args.setRepositoryName(repositoryName);
988 args.setRevision(revision);
989 args.setMergeQuery(mergeQuery);
990 sendBase("mergeFiles", args);
991 }
992
993 public MergedEntry recv_mergeFiles() throws CentralDogmaException, org.apache.thrift.TException
994 {
995 mergeFiles_result result = new mergeFiles_result();
996 receiveBase(result, "mergeFiles");
997 if (result.isSetSuccess()) {
998 return result.success;
999 }
1000 if (result.e != null) {
1001 throw result.e;
1002 }
1003 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "mergeFiles failed: unknown result");
1004 }
1005
1006 public WatchRepositoryResult watchRepository(String projectName, String repositoryName, Revision lastKnownRevision, String pathPattern, long timeoutMillis) throws CentralDogmaException, org.apache.thrift.TException
1007 {
1008 send_watchRepository(projectName, repositoryName, lastKnownRevision, pathPattern, timeoutMillis);
1009 return recv_watchRepository();
1010 }
1011
1012 public void send_watchRepository(String projectName, String repositoryName, Revision lastKnownRevision, String pathPattern, long timeoutMillis) throws org.apache.thrift.TException
1013 {
1014 watchRepository_args args = new watchRepository_args();
1015 args.setProjectName(projectName);
1016 args.setRepositoryName(repositoryName);
1017 args.setLastKnownRevision(lastKnownRevision);
1018 args.setPathPattern(pathPattern);
1019 args.setTimeoutMillis(timeoutMillis);
1020 sendBase("watchRepository", args);
1021 }
1022
1023 public WatchRepositoryResult recv_watchRepository() throws CentralDogmaException, org.apache.thrift.TException
1024 {
1025 watchRepository_result result = new watchRepository_result();
1026 receiveBase(result, "watchRepository");
1027 if (result.isSetSuccess()) {
1028 return result.success;
1029 }
1030 if (result.e != null) {
1031 throw result.e;
1032 }
1033 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "watchRepository failed: unknown result");
1034 }
1035
1036 public WatchFileResult watchFile(String projectName, String repositoryName, Revision lastKnownRevision, Query query, long timeoutMillis) throws CentralDogmaException, org.apache.thrift.TException
1037 {
1038 send_watchFile(projectName, repositoryName, lastKnownRevision, query, timeoutMillis);
1039 return recv_watchFile();
1040 }
1041
1042 public void send_watchFile(String projectName, String repositoryName, Revision lastKnownRevision, Query query, long timeoutMillis) throws org.apache.thrift.TException
1043 {
1044 watchFile_args args = new watchFile_args();
1045 args.setProjectName(projectName);
1046 args.setRepositoryName(repositoryName);
1047 args.setLastKnownRevision(lastKnownRevision);
1048 args.setQuery(query);
1049 args.setTimeoutMillis(timeoutMillis);
1050 sendBase("watchFile", args);
1051 }
1052
1053 public WatchFileResult recv_watchFile() throws CentralDogmaException, org.apache.thrift.TException
1054 {
1055 watchFile_result result = new watchFile_result();
1056 receiveBase(result, "watchFile");
1057 if (result.isSetSuccess()) {
1058 return result.success;
1059 }
1060 if (result.e != null) {
1061 throw result.e;
1062 }
1063 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "watchFile failed: unknown result");
1064 }
1065
1066 public Schema getSchema(String projectName) throws CentralDogmaException, org.apache.thrift.TException
1067 {
1068 send_getSchema(projectName);
1069 return recv_getSchema();
1070 }
1071
1072 public void send_getSchema(String projectName) throws org.apache.thrift.TException
1073 {
1074 getSchema_args args = new getSchema_args();
1075 args.setProjectName(projectName);
1076 sendBase("getSchema", args);
1077 }
1078
1079 public Schema recv_getSchema() throws CentralDogmaException, org.apache.thrift.TException
1080 {
1081 getSchema_result result = new getSchema_result();
1082 receiveBase(result, "getSchema");
1083 if (result.isSetSuccess()) {
1084 return result.success;
1085 }
1086 if (result.e != null) {
1087 throw result.e;
1088 }
1089 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getSchema failed: unknown result");
1090 }
1091
1092 public void saveSchema(String projectName, Schema schema) throws CentralDogmaException, org.apache.thrift.TException
1093 {
1094 send_saveSchema(projectName, schema);
1095 recv_saveSchema();
1096 }
1097
1098 public void send_saveSchema(String projectName, Schema schema) throws org.apache.thrift.TException
1099 {
1100 saveSchema_args args = new saveSchema_args();
1101 args.setProjectName(projectName);
1102 args.setSchema(schema);
1103 sendBase("saveSchema", args);
1104 }
1105
1106 public void recv_saveSchema() throws CentralDogmaException, org.apache.thrift.TException
1107 {
1108 saveSchema_result result = new saveSchema_result();
1109 receiveBase(result, "saveSchema");
1110 if (result.e != null) {
1111 throw result.e;
1112 }
1113 return;
1114 }
1115
1116 public NamedQuery getNamedQuery(String projectName, String name) throws CentralDogmaException, org.apache.thrift.TException
1117 {
1118 send_getNamedQuery(projectName, name);
1119 return recv_getNamedQuery();
1120 }
1121
1122 public void send_getNamedQuery(String projectName, String name) throws org.apache.thrift.TException
1123 {
1124 getNamedQuery_args args = new getNamedQuery_args();
1125 args.setProjectName(projectName);
1126 args.setName(name);
1127 sendBase("getNamedQuery", args);
1128 }
1129
1130 public NamedQuery recv_getNamedQuery() throws CentralDogmaException, org.apache.thrift.TException
1131 {
1132 getNamedQuery_result result = new getNamedQuery_result();
1133 receiveBase(result, "getNamedQuery");
1134 if (result.isSetSuccess()) {
1135 return result.success;
1136 }
1137 if (result.e != null) {
1138 throw result.e;
1139 }
1140 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getNamedQuery failed: unknown result");
1141 }
1142
1143 public void saveNamedQuery(String projectName, NamedQuery namedQuery) throws CentralDogmaException, org.apache.thrift.TException
1144 {
1145 send_saveNamedQuery(projectName, namedQuery);
1146 recv_saveNamedQuery();
1147 }
1148
1149 public void send_saveNamedQuery(String projectName, NamedQuery namedQuery) throws org.apache.thrift.TException
1150 {
1151 saveNamedQuery_args args = new saveNamedQuery_args();
1152 args.setProjectName(projectName);
1153 args.setNamedQuery(namedQuery);
1154 sendBase("saveNamedQuery", args);
1155 }
1156
1157 public void recv_saveNamedQuery() throws CentralDogmaException, org.apache.thrift.TException
1158 {
1159 saveNamedQuery_result result = new saveNamedQuery_result();
1160 receiveBase(result, "saveNamedQuery");
1161 if (result.e != null) {
1162 throw result.e;
1163 }
1164 return;
1165 }
1166
1167 public void removeNamedQuery(String projectName, String name) throws CentralDogmaException, org.apache.thrift.TException
1168 {
1169 send_removeNamedQuery(projectName, name);
1170 recv_removeNamedQuery();
1171 }
1172
1173 public void send_removeNamedQuery(String projectName, String name) throws org.apache.thrift.TException
1174 {
1175 removeNamedQuery_args args = new removeNamedQuery_args();
1176 args.setProjectName(projectName);
1177 args.setName(name);
1178 sendBase("removeNamedQuery", args);
1179 }
1180
1181 public void recv_removeNamedQuery() throws CentralDogmaException, org.apache.thrift.TException
1182 {
1183 removeNamedQuery_result result = new removeNamedQuery_result();
1184 receiveBase(result, "removeNamedQuery");
1185 if (result.e != null) {
1186 throw result.e;
1187 }
1188 return;
1189 }
1190
1191 public List<NamedQuery> listNamedQueries(String projectName) throws CentralDogmaException, org.apache.thrift.TException
1192 {
1193 send_listNamedQueries(projectName);
1194 return recv_listNamedQueries();
1195 }
1196
1197 public void send_listNamedQueries(String projectName) throws org.apache.thrift.TException
1198 {
1199 listNamedQueries_args args = new listNamedQueries_args();
1200 args.setProjectName(projectName);
1201 sendBase("listNamedQueries", args);
1202 }
1203
1204 public List<NamedQuery> recv_listNamedQueries() throws CentralDogmaException, org.apache.thrift.TException
1205 {
1206 listNamedQueries_result result = new listNamedQueries_result();
1207 receiveBase(result, "listNamedQueries");
1208 if (result.isSetSuccess()) {
1209 return result.success;
1210 }
1211 if (result.e != null) {
1212 throw result.e;
1213 }
1214 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "listNamedQueries failed: unknown result");
1215 }
1216
1217 public Plugin getPlugin(String projectName, String pluginName) throws CentralDogmaException, org.apache.thrift.TException
1218 {
1219 send_getPlugin(projectName, pluginName);
1220 return recv_getPlugin();
1221 }
1222
1223 public void send_getPlugin(String projectName, String pluginName) throws org.apache.thrift.TException
1224 {
1225 getPlugin_args args = new getPlugin_args();
1226 args.setProjectName(projectName);
1227 args.setPluginName(pluginName);
1228 sendBase("getPlugin", args);
1229 }
1230
1231 public Plugin recv_getPlugin() throws CentralDogmaException, org.apache.thrift.TException
1232 {
1233 getPlugin_result result = new getPlugin_result();
1234 receiveBase(result, "getPlugin");
1235 if (result.isSetSuccess()) {
1236 return result.success;
1237 }
1238 if (result.e != null) {
1239 throw result.e;
1240 }
1241 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPlugin failed: unknown result");
1242 }
1243
1244 public void savePlugin(String projectName, Plugin plugin) throws CentralDogmaException, org.apache.thrift.TException
1245 {
1246 send_savePlugin(projectName, plugin);
1247 recv_savePlugin();
1248 }
1249
1250 public void send_savePlugin(String projectName, Plugin plugin) throws org.apache.thrift.TException
1251 {
1252 savePlugin_args args = new savePlugin_args();
1253 args.setProjectName(projectName);
1254 args.setPlugin(plugin);
1255 sendBase("savePlugin", args);
1256 }
1257
1258 public void recv_savePlugin() throws CentralDogmaException, org.apache.thrift.TException
1259 {
1260 savePlugin_result result = new savePlugin_result();
1261 receiveBase(result, "savePlugin");
1262 if (result.e != null) {
1263 throw result.e;
1264 }
1265 return;
1266 }
1267
1268 public void removePlugin(String projectName, String pluginName) throws CentralDogmaException, org.apache.thrift.TException
1269 {
1270 send_removePlugin(projectName, pluginName);
1271 recv_removePlugin();
1272 }
1273
1274 public void send_removePlugin(String projectName, String pluginName) throws org.apache.thrift.TException
1275 {
1276 removePlugin_args args = new removePlugin_args();
1277 args.setProjectName(projectName);
1278 args.setPluginName(pluginName);
1279 sendBase("removePlugin", args);
1280 }
1281
1282 public void recv_removePlugin() throws CentralDogmaException, org.apache.thrift.TException
1283 {
1284 removePlugin_result result = new removePlugin_result();
1285 receiveBase(result, "removePlugin");
1286 if (result.e != null) {
1287 throw result.e;
1288 }
1289 return;
1290 }
1291
1292 public List<Plugin> listPlugins(String projectName) throws CentralDogmaException, org.apache.thrift.TException
1293 {
1294 send_listPlugins(projectName);
1295 return recv_listPlugins();
1296 }
1297
1298 public void send_listPlugins(String projectName) throws org.apache.thrift.TException
1299 {
1300 listPlugins_args args = new listPlugins_args();
1301 args.setProjectName(projectName);
1302 sendBase("listPlugins", args);
1303 }
1304
1305 public List<Plugin> recv_listPlugins() throws CentralDogmaException, org.apache.thrift.TException
1306 {
1307 listPlugins_result result = new listPlugins_result();
1308 receiveBase(result, "listPlugins");
1309 if (result.isSetSuccess()) {
1310 return result.success;
1311 }
1312 if (result.e != null) {
1313 throw result.e;
1314 }
1315 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "listPlugins failed: unknown result");
1316 }
1317
1318 public List<PluginOperation> listPluginOperations(String projectName) throws CentralDogmaException, org.apache.thrift.TException
1319 {
1320 send_listPluginOperations(projectName);
1321 return recv_listPluginOperations();
1322 }
1323
1324 public void send_listPluginOperations(String projectName) throws org.apache.thrift.TException
1325 {
1326 listPluginOperations_args args = new listPluginOperations_args();
1327 args.setProjectName(projectName);
1328 sendBase("listPluginOperations", args);
1329 }
1330
1331 public List<PluginOperation> recv_listPluginOperations() throws CentralDogmaException, org.apache.thrift.TException
1332 {
1333 listPluginOperations_result result = new listPluginOperations_result();
1334 receiveBase(result, "listPluginOperations");
1335 if (result.isSetSuccess()) {
1336 return result.success;
1337 }
1338 if (result.e != null) {
1339 throw result.e;
1340 }
1341 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "listPluginOperations failed: unknown result");
1342 }
1343
1344 public String performPluginOperation(String projectName, String pluginName, String operationName, String params) throws CentralDogmaException, org.apache.thrift.TException
1345 {
1346 send_performPluginOperation(projectName, pluginName, operationName, params);
1347 return recv_performPluginOperation();
1348 }
1349
1350 public void send_performPluginOperation(String projectName, String pluginName, String operationName, String params) throws org.apache.thrift.TException
1351 {
1352 performPluginOperation_args args = new performPluginOperation_args();
1353 args.setProjectName(projectName);
1354 args.setPluginName(pluginName);
1355 args.setOperationName(operationName);
1356 args.setParams(params);
1357 sendBase("performPluginOperation", args);
1358 }
1359
1360 public String recv_performPluginOperation() throws CentralDogmaException, org.apache.thrift.TException
1361 {
1362 performPluginOperation_result result = new performPluginOperation_result();
1363 receiveBase(result, "performPluginOperation");
1364 if (result.isSetSuccess()) {
1365 return result.success;
1366 }
1367 if (result.e != null) {
1368 throw result.e;
1369 }
1370 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "performPluginOperation failed: unknown result");
1371 }
1372
1373 public String queryByNamedQuery(String projectName, String namedQuery, Revision revision) throws CentralDogmaException, org.apache.thrift.TException
1374 {
1375 send_queryByNamedQuery(projectName, namedQuery, revision);
1376 return recv_queryByNamedQuery();
1377 }
1378
1379 public void send_queryByNamedQuery(String projectName, String namedQuery, Revision revision) throws org.apache.thrift.TException
1380 {
1381 queryByNamedQuery_args args = new queryByNamedQuery_args();
1382 args.setProjectName(projectName);
1383 args.setNamedQuery(namedQuery);
1384 args.setRevision(revision);
1385 sendBase("queryByNamedQuery", args);
1386 }
1387
1388 public String recv_queryByNamedQuery() throws CentralDogmaException, org.apache.thrift.TException
1389 {
1390 queryByNamedQuery_result result = new queryByNamedQuery_result();
1391 receiveBase(result, "queryByNamedQuery");
1392 if (result.isSetSuccess()) {
1393 return result.success;
1394 }
1395 if (result.e != null) {
1396 throw result.e;
1397 }
1398 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "queryByNamedQuery failed: unknown result");
1399 }
1400
1401 public List<Subscriber> listSubscribers(String projectName, String repositoryName, String path) throws CentralDogmaException, org.apache.thrift.TException
1402 {
1403 send_listSubscribers(projectName, repositoryName, path);
1404 return recv_listSubscribers();
1405 }
1406
1407 public void send_listSubscribers(String projectName, String repositoryName, String path) throws org.apache.thrift.TException
1408 {
1409 listSubscribers_args args = new listSubscribers_args();
1410 args.setProjectName(projectName);
1411 args.setRepositoryName(repositoryName);
1412 args.setPath(path);
1413 sendBase("listSubscribers", args);
1414 }
1415
1416 public List<Subscriber> recv_listSubscribers() throws CentralDogmaException, org.apache.thrift.TException
1417 {
1418 listSubscribers_result result = new listSubscribers_result();
1419 receiveBase(result, "listSubscribers");
1420 if (result.isSetSuccess()) {
1421 return result.success;
1422 }
1423 if (result.e != null) {
1424 throw result.e;
1425 }
1426 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "listSubscribers failed: unknown result");
1427 }
1428
1429 }
1430 public static class AsyncClient extends org.apache.thrift.async.TAsyncClient implements AsyncIface {
1431 public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
1432 private org.apache.thrift.async.TAsyncClientManager clientManager;
1433 private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
1434 public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
1435 this.clientManager = clientManager;
1436 this.protocolFactory = protocolFactory;
1437 }
1438 public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
1439 return new AsyncClient(protocolFactory, clientManager, transport);
1440 }
1441 }
1442
1443 public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
1444 super(protocolFactory, clientManager, transport);
1445 }
1446
1447 public void createProject(String name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1448 checkReady();
1449 createProject_call method_call = new createProject_call(name, resultHandler, this, ___protocolFactory, ___transport);
1450 this.___currentMethod = method_call;
1451 ___manager.call(method_call);
1452 }
1453
1454 public static class createProject_call extends org.apache.thrift.async.TAsyncMethodCall {
1455 private String name;
1456 public createProject_call(String name, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1457 super(client, protocolFactory, transport, resultHandler, false);
1458 this.name = name;
1459 }
1460
1461 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1462 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createProject", org.apache.thrift.protocol.TMessageType.CALL, 0));
1463 createProject_args args = new createProject_args();
1464 args.setName(name);
1465 args.write(prot);
1466 prot.writeMessageEnd();
1467 }
1468
1469 public void getResult() throws CentralDogmaException, org.apache.thrift.TException {
1470 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1471 throw new IllegalStateException("Method call not finished!");
1472 }
1473 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1474 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1475 (new Client(prot)).recv_createProject();
1476 }
1477 }
1478
1479 public void removeProject(String name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1480 checkReady();
1481 removeProject_call method_call = new removeProject_call(name, resultHandler, this, ___protocolFactory, ___transport);
1482 this.___currentMethod = method_call;
1483 ___manager.call(method_call);
1484 }
1485
1486 public static class removeProject_call extends org.apache.thrift.async.TAsyncMethodCall {
1487 private String name;
1488 public removeProject_call(String name, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1489 super(client, protocolFactory, transport, resultHandler, false);
1490 this.name = name;
1491 }
1492
1493 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1494 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("removeProject", org.apache.thrift.protocol.TMessageType.CALL, 0));
1495 removeProject_args args = new removeProject_args();
1496 args.setName(name);
1497 args.write(prot);
1498 prot.writeMessageEnd();
1499 }
1500
1501 public void getResult() throws CentralDogmaException, org.apache.thrift.TException {
1502 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1503 throw new IllegalStateException("Method call not finished!");
1504 }
1505 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1506 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1507 (new Client(prot)).recv_removeProject();
1508 }
1509 }
1510
1511 public void unremoveProject(String name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1512 checkReady();
1513 unremoveProject_call method_call = new unremoveProject_call(name, resultHandler, this, ___protocolFactory, ___transport);
1514 this.___currentMethod = method_call;
1515 ___manager.call(method_call);
1516 }
1517
1518 public static class unremoveProject_call extends org.apache.thrift.async.TAsyncMethodCall {
1519 private String name;
1520 public unremoveProject_call(String name, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1521 super(client, protocolFactory, transport, resultHandler, false);
1522 this.name = name;
1523 }
1524
1525 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1526 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("unremoveProject", org.apache.thrift.protocol.TMessageType.CALL, 0));
1527 unremoveProject_args args = new unremoveProject_args();
1528 args.setName(name);
1529 args.write(prot);
1530 prot.writeMessageEnd();
1531 }
1532
1533 public void getResult() throws CentralDogmaException, org.apache.thrift.TException {
1534 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1535 throw new IllegalStateException("Method call not finished!");
1536 }
1537 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1538 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1539 (new Client(prot)).recv_unremoveProject();
1540 }
1541 }
1542
1543 public void listProjects(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1544 checkReady();
1545 listProjects_call method_call = new listProjects_call(resultHandler, this, ___protocolFactory, ___transport);
1546 this.___currentMethod = method_call;
1547 ___manager.call(method_call);
1548 }
1549
1550 public static class listProjects_call extends org.apache.thrift.async.TAsyncMethodCall {
1551 public listProjects_call(org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1552 super(client, protocolFactory, transport, resultHandler, false);
1553 }
1554
1555 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1556 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("listProjects", org.apache.thrift.protocol.TMessageType.CALL, 0));
1557 listProjects_args args = new listProjects_args();
1558 args.write(prot);
1559 prot.writeMessageEnd();
1560 }
1561
1562 public List<Project> getResult() throws CentralDogmaException, org.apache.thrift.TException {
1563 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1564 throw new IllegalStateException("Method call not finished!");
1565 }
1566 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1567 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1568 return (new Client(prot)).recv_listProjects();
1569 }
1570 }
1571
1572 public void listRemovedProjects(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1573 checkReady();
1574 listRemovedProjects_call method_call = new listRemovedProjects_call(resultHandler, this, ___protocolFactory, ___transport);
1575 this.___currentMethod = method_call;
1576 ___manager.call(method_call);
1577 }
1578
1579 public static class listRemovedProjects_call extends org.apache.thrift.async.TAsyncMethodCall {
1580 public listRemovedProjects_call(org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1581 super(client, protocolFactory, transport, resultHandler, false);
1582 }
1583
1584 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1585 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("listRemovedProjects", org.apache.thrift.protocol.TMessageType.CALL, 0));
1586 listRemovedProjects_args args = new listRemovedProjects_args();
1587 args.write(prot);
1588 prot.writeMessageEnd();
1589 }
1590
1591 public Set<String> getResult() throws CentralDogmaException, org.apache.thrift.TException {
1592 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1593 throw new IllegalStateException("Method call not finished!");
1594 }
1595 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1596 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1597 return (new Client(prot)).recv_listRemovedProjects();
1598 }
1599 }
1600
1601 public void createRepository(String projectName, String repositoryName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1602 checkReady();
1603 createRepository_call method_call = new createRepository_call(projectName, repositoryName, resultHandler, this, ___protocolFactory, ___transport);
1604 this.___currentMethod = method_call;
1605 ___manager.call(method_call);
1606 }
1607
1608 public static class createRepository_call extends org.apache.thrift.async.TAsyncMethodCall {
1609 private String projectName;
1610 private String repositoryName;
1611 public createRepository_call(String projectName, String repositoryName, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1612 super(client, protocolFactory, transport, resultHandler, false);
1613 this.projectName = projectName;
1614 this.repositoryName = repositoryName;
1615 }
1616
1617 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1618 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createRepository", org.apache.thrift.protocol.TMessageType.CALL, 0));
1619 createRepository_args args = new createRepository_args();
1620 args.setProjectName(projectName);
1621 args.setRepositoryName(repositoryName);
1622 args.write(prot);
1623 prot.writeMessageEnd();
1624 }
1625
1626 public void getResult() throws CentralDogmaException, org.apache.thrift.TException {
1627 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1628 throw new IllegalStateException("Method call not finished!");
1629 }
1630 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1631 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1632 (new Client(prot)).recv_createRepository();
1633 }
1634 }
1635
1636 public void removeRepository(String projectName, String repositoryName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1637 checkReady();
1638 removeRepository_call method_call = new removeRepository_call(projectName, repositoryName, resultHandler, this, ___protocolFactory, ___transport);
1639 this.___currentMethod = method_call;
1640 ___manager.call(method_call);
1641 }
1642
1643 public static class removeRepository_call extends org.apache.thrift.async.TAsyncMethodCall {
1644 private String projectName;
1645 private String repositoryName;
1646 public removeRepository_call(String projectName, String repositoryName, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1647 super(client, protocolFactory, transport, resultHandler, false);
1648 this.projectName = projectName;
1649 this.repositoryName = repositoryName;
1650 }
1651
1652 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1653 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("removeRepository", org.apache.thrift.protocol.TMessageType.CALL, 0));
1654 removeRepository_args args = new removeRepository_args();
1655 args.setProjectName(projectName);
1656 args.setRepositoryName(repositoryName);
1657 args.write(prot);
1658 prot.writeMessageEnd();
1659 }
1660
1661 public void getResult() throws CentralDogmaException, org.apache.thrift.TException {
1662 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1663 throw new IllegalStateException("Method call not finished!");
1664 }
1665 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1666 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1667 (new Client(prot)).recv_removeRepository();
1668 }
1669 }
1670
1671 public void unremoveRepository(String projectName, String repositoryName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1672 checkReady();
1673 unremoveRepository_call method_call = new unremoveRepository_call(projectName, repositoryName, resultHandler, this, ___protocolFactory, ___transport);
1674 this.___currentMethod = method_call;
1675 ___manager.call(method_call);
1676 }
1677
1678 public static class unremoveRepository_call extends org.apache.thrift.async.TAsyncMethodCall {
1679 private String projectName;
1680 private String repositoryName;
1681 public unremoveRepository_call(String projectName, String repositoryName, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1682 super(client, protocolFactory, transport, resultHandler, false);
1683 this.projectName = projectName;
1684 this.repositoryName = repositoryName;
1685 }
1686
1687 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1688 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("unremoveRepository", org.apache.thrift.protocol.TMessageType.CALL, 0));
1689 unremoveRepository_args args = new unremoveRepository_args();
1690 args.setProjectName(projectName);
1691 args.setRepositoryName(repositoryName);
1692 args.write(prot);
1693 prot.writeMessageEnd();
1694 }
1695
1696 public void getResult() throws CentralDogmaException, org.apache.thrift.TException {
1697 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1698 throw new IllegalStateException("Method call not finished!");
1699 }
1700 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1701 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1702 (new Client(prot)).recv_unremoveRepository();
1703 }
1704 }
1705
1706 public void listRepositories(String projectName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1707 checkReady();
1708 listRepositories_call method_call = new listRepositories_call(projectName, resultHandler, this, ___protocolFactory, ___transport);
1709 this.___currentMethod = method_call;
1710 ___manager.call(method_call);
1711 }
1712
1713 public static class listRepositories_call extends org.apache.thrift.async.TAsyncMethodCall {
1714 private String projectName;
1715 public listRepositories_call(String projectName, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1716 super(client, protocolFactory, transport, resultHandler, false);
1717 this.projectName = projectName;
1718 }
1719
1720 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1721 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("listRepositories", org.apache.thrift.protocol.TMessageType.CALL, 0));
1722 listRepositories_args args = new listRepositories_args();
1723 args.setProjectName(projectName);
1724 args.write(prot);
1725 prot.writeMessageEnd();
1726 }
1727
1728 public List<Repository> getResult() throws CentralDogmaException, org.apache.thrift.TException {
1729 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1730 throw new IllegalStateException("Method call not finished!");
1731 }
1732 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1733 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1734 return (new Client(prot)).recv_listRepositories();
1735 }
1736 }
1737
1738 public void listRemovedRepositories(String projectName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1739 checkReady();
1740 listRemovedRepositories_call method_call = new listRemovedRepositories_call(projectName, resultHandler, this, ___protocolFactory, ___transport);
1741 this.___currentMethod = method_call;
1742 ___manager.call(method_call);
1743 }
1744
1745 public static class listRemovedRepositories_call extends org.apache.thrift.async.TAsyncMethodCall {
1746 private String projectName;
1747 public listRemovedRepositories_call(String projectName, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1748 super(client, protocolFactory, transport, resultHandler, false);
1749 this.projectName = projectName;
1750 }
1751
1752 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1753 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("listRemovedRepositories", org.apache.thrift.protocol.TMessageType.CALL, 0));
1754 listRemovedRepositories_args args = new listRemovedRepositories_args();
1755 args.setProjectName(projectName);
1756 args.write(prot);
1757 prot.writeMessageEnd();
1758 }
1759
1760 public Set<String> getResult() throws CentralDogmaException, org.apache.thrift.TException {
1761 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1762 throw new IllegalStateException("Method call not finished!");
1763 }
1764 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1765 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1766 return (new Client(prot)).recv_listRemovedRepositories();
1767 }
1768 }
1769
1770 public void normalizeRevision(String projectName, String repositoryName, Revision revision, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1771 checkReady();
1772 normalizeRevision_call method_call = new normalizeRevision_call(projectName, repositoryName, revision, resultHandler, this, ___protocolFactory, ___transport);
1773 this.___currentMethod = method_call;
1774 ___manager.call(method_call);
1775 }
1776
1777 public static class normalizeRevision_call extends org.apache.thrift.async.TAsyncMethodCall {
1778 private String projectName;
1779 private String repositoryName;
1780 private Revision revision;
1781 public normalizeRevision_call(String projectName, String repositoryName, Revision revision, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1782 super(client, protocolFactory, transport, resultHandler, false);
1783 this.projectName = projectName;
1784 this.repositoryName = repositoryName;
1785 this.revision = revision;
1786 }
1787
1788 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1789 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("normalizeRevision", org.apache.thrift.protocol.TMessageType.CALL, 0));
1790 normalizeRevision_args args = new normalizeRevision_args();
1791 args.setProjectName(projectName);
1792 args.setRepositoryName(repositoryName);
1793 args.setRevision(revision);
1794 args.write(prot);
1795 prot.writeMessageEnd();
1796 }
1797
1798 public Revision getResult() throws CentralDogmaException, org.apache.thrift.TException {
1799 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1800 throw new IllegalStateException("Method call not finished!");
1801 }
1802 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1803 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1804 return (new Client(prot)).recv_normalizeRevision();
1805 }
1806 }
1807
1808 public void listFiles(String projectName, String repositoryName, Revision revision, String pathPattern, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1809 checkReady();
1810 listFiles_call method_call = new listFiles_call(projectName, repositoryName, revision, pathPattern, resultHandler, this, ___protocolFactory, ___transport);
1811 this.___currentMethod = method_call;
1812 ___manager.call(method_call);
1813 }
1814
1815 public static class listFiles_call extends org.apache.thrift.async.TAsyncMethodCall {
1816 private String projectName;
1817 private String repositoryName;
1818 private Revision revision;
1819 private String pathPattern;
1820 public listFiles_call(String projectName, String repositoryName, Revision revision, String pathPattern, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1821 super(client, protocolFactory, transport, resultHandler, false);
1822 this.projectName = projectName;
1823 this.repositoryName = repositoryName;
1824 this.revision = revision;
1825 this.pathPattern = pathPattern;
1826 }
1827
1828 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1829 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("listFiles", org.apache.thrift.protocol.TMessageType.CALL, 0));
1830 listFiles_args args = new listFiles_args();
1831 args.setProjectName(projectName);
1832 args.setRepositoryName(repositoryName);
1833 args.setRevision(revision);
1834 args.setPathPattern(pathPattern);
1835 args.write(prot);
1836 prot.writeMessageEnd();
1837 }
1838
1839 public List<Entry> getResult() throws CentralDogmaException, org.apache.thrift.TException {
1840 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1841 throw new IllegalStateException("Method call not finished!");
1842 }
1843 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1844 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1845 return (new Client(prot)).recv_listFiles();
1846 }
1847 }
1848
1849 public void getFiles(String projectName, String repositoryName, Revision revision, String pathPattern, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1850 checkReady();
1851 getFiles_call method_call = new getFiles_call(projectName, repositoryName, revision, pathPattern, resultHandler, this, ___protocolFactory, ___transport);
1852 this.___currentMethod = method_call;
1853 ___manager.call(method_call);
1854 }
1855
1856 public static class getFiles_call extends org.apache.thrift.async.TAsyncMethodCall {
1857 private String projectName;
1858 private String repositoryName;
1859 private Revision revision;
1860 private String pathPattern;
1861 public getFiles_call(String projectName, String repositoryName, Revision revision, String pathPattern, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1862 super(client, protocolFactory, transport, resultHandler, false);
1863 this.projectName = projectName;
1864 this.repositoryName = repositoryName;
1865 this.revision = revision;
1866 this.pathPattern = pathPattern;
1867 }
1868
1869 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1870 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getFiles", org.apache.thrift.protocol.TMessageType.CALL, 0));
1871 getFiles_args args = new getFiles_args();
1872 args.setProjectName(projectName);
1873 args.setRepositoryName(repositoryName);
1874 args.setRevision(revision);
1875 args.setPathPattern(pathPattern);
1876 args.write(prot);
1877 prot.writeMessageEnd();
1878 }
1879
1880 public List<Entry> getResult() throws CentralDogmaException, org.apache.thrift.TException {
1881 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1882 throw new IllegalStateException("Method call not finished!");
1883 }
1884 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1885 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1886 return (new Client(prot)).recv_getFiles();
1887 }
1888 }
1889
1890 public void getHistory(String projectName, String repositoryName, Revision from, Revision to, String pathPattern, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1891 checkReady();
1892 getHistory_call method_call = new getHistory_call(projectName, repositoryName, from, to, pathPattern, resultHandler, this, ___protocolFactory, ___transport);
1893 this.___currentMethod = method_call;
1894 ___manager.call(method_call);
1895 }
1896
1897 public static class getHistory_call extends org.apache.thrift.async.TAsyncMethodCall {
1898 private String projectName;
1899 private String repositoryName;
1900 private Revision from;
1901 private Revision to;
1902 private String pathPattern;
1903 public getHistory_call(String projectName, String repositoryName, Revision from, Revision to, String pathPattern, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1904 super(client, protocolFactory, transport, resultHandler, false);
1905 this.projectName = projectName;
1906 this.repositoryName = repositoryName;
1907 this.from = from;
1908 this.to = to;
1909 this.pathPattern = pathPattern;
1910 }
1911
1912 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1913 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getHistory", org.apache.thrift.protocol.TMessageType.CALL, 0));
1914 getHistory_args args = new getHistory_args();
1915 args.setProjectName(projectName);
1916 args.setRepositoryName(repositoryName);
1917 args.setFromRevision(from);
1918 args.setToRevision(to);
1919 args.setPathPattern(pathPattern);
1920 args.write(prot);
1921 prot.writeMessageEnd();
1922 }
1923
1924 public List<Commit> getResult() throws CentralDogmaException, org.apache.thrift.TException {
1925 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1926 throw new IllegalStateException("Method call not finished!");
1927 }
1928 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1929 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1930 return (new Client(prot)).recv_getHistory();
1931 }
1932 }
1933
1934 public void getDiffs(String projectName, String repositoryName, Revision from, Revision to, String pathPattern, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1935 checkReady();
1936 getDiffs_call method_call = new getDiffs_call(projectName, repositoryName, from, to, pathPattern, resultHandler, this, ___protocolFactory, ___transport);
1937 this.___currentMethod = method_call;
1938 ___manager.call(method_call);
1939 }
1940
1941 public static class getDiffs_call extends org.apache.thrift.async.TAsyncMethodCall {
1942 private String projectName;
1943 private String repositoryName;
1944 private Revision from;
1945 private Revision to;
1946 private String pathPattern;
1947 public getDiffs_call(String projectName, String repositoryName, Revision from, Revision to, String pathPattern, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1948 super(client, protocolFactory, transport, resultHandler, false);
1949 this.projectName = projectName;
1950 this.repositoryName = repositoryName;
1951 this.from = from;
1952 this.to = to;
1953 this.pathPattern = pathPattern;
1954 }
1955
1956 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1957 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getDiffs", org.apache.thrift.protocol.TMessageType.CALL, 0));
1958 getDiffs_args args = new getDiffs_args();
1959 args.setProjectName(projectName);
1960 args.setRepositoryName(repositoryName);
1961 args.setFromRevision(from);
1962 args.setToRevision(to);
1963 args.setPathPattern(pathPattern);
1964 args.write(prot);
1965 prot.writeMessageEnd();
1966 }
1967
1968 public List<Change> getResult() throws CentralDogmaException, org.apache.thrift.TException {
1969 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1970 throw new IllegalStateException("Method call not finished!");
1971 }
1972 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1973 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1974 return (new Client(prot)).recv_getDiffs();
1975 }
1976 }
1977
1978 public void getPreviewDiffs(String projectName, String repositoryName, Revision baseRevision, List<Change> changes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1979 checkReady();
1980 getPreviewDiffs_call method_call = new getPreviewDiffs_call(projectName, repositoryName, baseRevision, changes, resultHandler, this, ___protocolFactory, ___transport);
1981 this.___currentMethod = method_call;
1982 ___manager.call(method_call);
1983 }
1984
1985 public static class getPreviewDiffs_call extends org.apache.thrift.async.TAsyncMethodCall {
1986 private String projectName;
1987 private String repositoryName;
1988 private Revision baseRevision;
1989 private List<Change> changes;
1990 public getPreviewDiffs_call(String projectName, String repositoryName, Revision baseRevision, List<Change> changes, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1991 super(client, protocolFactory, transport, resultHandler, false);
1992 this.projectName = projectName;
1993 this.repositoryName = repositoryName;
1994 this.baseRevision = baseRevision;
1995 this.changes = changes;
1996 }
1997
1998 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1999 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPreviewDiffs", org.apache.thrift.protocol.TMessageType.CALL, 0));
2000 getPreviewDiffs_args args = new getPreviewDiffs_args();
2001 args.setProjectName(projectName);
2002 args.setRepositoryName(repositoryName);
2003 args.setBaseRevision(baseRevision);
2004 args.setChanges(changes);
2005 args.write(prot);
2006 prot.writeMessageEnd();
2007 }
2008
2009 public List<Change> getResult() throws CentralDogmaException, org.apache.thrift.TException {
2010 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2011 throw new IllegalStateException("Method call not finished!");
2012 }
2013 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2014 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2015 return (new Client(prot)).recv_getPreviewDiffs();
2016 }
2017 }
2018
2019 public void push(String projectName, String repositoryName, Revision baseRevision, Author author, String summary, Comment detail, List<Change> changes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
2020 checkReady();
2021 push_call method_call = new push_call(projectName, repositoryName, baseRevision, author, summary, detail, changes, resultHandler, this, ___protocolFactory, ___transport);
2022 this.___currentMethod = method_call;
2023 ___manager.call(method_call);
2024 }
2025
2026 public static class push_call extends org.apache.thrift.async.TAsyncMethodCall {
2027 private String projectName;
2028 private String repositoryName;
2029 private Revision baseRevision;
2030 private Author author;
2031 private String summary;
2032 private Comment detail;
2033 private List<Change> changes;
2034 public push_call(String projectName, String repositoryName, Revision baseRevision, Author author, String summary, Comment detail, List<Change> changes, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2035 super(client, protocolFactory, transport, resultHandler, false);
2036 this.projectName = projectName;
2037 this.repositoryName = repositoryName;
2038 this.baseRevision = baseRevision;
2039 this.author = author;
2040 this.summary = summary;
2041 this.detail = detail;
2042 this.changes = changes;
2043 }
2044
2045 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2046 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("push", org.apache.thrift.protocol.TMessageType.CALL, 0));
2047 push_args args = new push_args();
2048 args.setProjectName(projectName);
2049 args.setRepositoryName(repositoryName);
2050 args.setBaseRevision(baseRevision);
2051 args.setAuthor(author);
2052 args.setSummary(summary);
2053 args.setDetail(detail);
2054 args.setChanges(changes);
2055 args.write(prot);
2056 prot.writeMessageEnd();
2057 }
2058
2059 public Commit getResult() throws CentralDogmaException, org.apache.thrift.TException {
2060 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2061 throw new IllegalStateException("Method call not finished!");
2062 }
2063 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2064 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2065 return (new Client(prot)).recv_push();
2066 }
2067 }
2068
2069 public void getFile(String projectName, String repositoryName, Revision revision, Query query, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
2070 checkReady();
2071 getFile_call method_call = new getFile_call(projectName, repositoryName, revision, query, resultHandler, this, ___protocolFactory, ___transport);
2072 this.___currentMethod = method_call;
2073 ___manager.call(method_call);
2074 }
2075
2076 public static class getFile_call extends org.apache.thrift.async.TAsyncMethodCall {
2077 private String projectName;
2078 private String repositoryName;
2079 private Revision revision;
2080 private Query query;
2081 public getFile_call(String projectName, String repositoryName, Revision revision, Query query, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2082 super(client, protocolFactory, transport, resultHandler, false);
2083 this.projectName = projectName;
2084 this.repositoryName = repositoryName;
2085 this.revision = revision;
2086 this.query = query;
2087 }
2088
2089 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2090 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getFile", org.apache.thrift.protocol.TMessageType.CALL, 0));
2091 getFile_args args = new getFile_args();
2092 args.setProjectName(projectName);
2093 args.setRepositoryName(repositoryName);
2094 args.setRevision(revision);
2095 args.setQuery(query);
2096 args.write(prot);
2097 prot.writeMessageEnd();
2098 }
2099
2100 public GetFileResult getResult() throws CentralDogmaException, org.apache.thrift.TException {
2101 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2102 throw new IllegalStateException("Method call not finished!");
2103 }
2104 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2105 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2106 return (new Client(prot)).recv_getFile();
2107 }
2108 }
2109
2110 public void diffFile(String projectName, String repositoryName, Revision from, Revision to, Query query, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
2111 checkReady();
2112 diffFile_call method_call = new diffFile_call(projectName, repositoryName, from, to, query, resultHandler, this, ___protocolFactory, ___transport);
2113 this.___currentMethod = method_call;
2114 ___manager.call(method_call);
2115 }
2116
2117 public static class diffFile_call extends org.apache.thrift.async.TAsyncMethodCall {
2118 private String projectName;
2119 private String repositoryName;
2120 private Revision from;
2121 private Revision to;
2122 private Query query;
2123 public diffFile_call(String projectName, String repositoryName, Revision from, Revision to, Query query, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2124 super(client, protocolFactory, transport, resultHandler, false);
2125 this.projectName = projectName;
2126 this.repositoryName = repositoryName;
2127 this.from = from;
2128 this.to = to;
2129 this.query = query;
2130 }
2131
2132 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2133 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("diffFile", org.apache.thrift.protocol.TMessageType.CALL, 0));
2134 diffFile_args args = new diffFile_args();
2135 args.setProjectName(projectName);
2136 args.setRepositoryName(repositoryName);
2137 args.setFromRevision(from);
2138 args.setToRevision(to);
2139 args.setQuery(query);
2140 args.write(prot);
2141 prot.writeMessageEnd();
2142 }
2143
2144 public DiffFileResult getResult() throws CentralDogmaException, org.apache.thrift.TException {
2145 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2146 throw new IllegalStateException("Method call not finished!");
2147 }
2148 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2149 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2150 return (new Client(prot)).recv_diffFile();
2151 }
2152 }
2153
2154 public void mergeFiles(String projectName, String repositoryName, Revision revision, MergeQuery mergeQuery, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
2155 checkReady();
2156 mergeFiles_call method_call = new mergeFiles_call(projectName, repositoryName, revision, mergeQuery, resultHandler, this, ___protocolFactory, ___transport);
2157 this.___currentMethod = method_call;
2158 ___manager.call(method_call);
2159 }
2160
2161 public static class mergeFiles_call extends org.apache.thrift.async.TAsyncMethodCall {
2162 private String projectName;
2163 private String repositoryName;
2164 private Revision revision;
2165 private MergeQuery mergeQuery;
2166 public mergeFiles_call(String projectName, String repositoryName, Revision revision, MergeQuery mergeQuery, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2167 super(client, protocolFactory, transport, resultHandler, false);
2168 this.projectName = projectName;
2169 this.repositoryName = repositoryName;
2170 this.revision = revision;
2171 this.mergeQuery = mergeQuery;
2172 }
2173
2174 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2175 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("mergeFiles", org.apache.thrift.protocol.TMessageType.CALL, 0));
2176 mergeFiles_args args = new mergeFiles_args();
2177 args.setProjectName(projectName);
2178 args.setRepositoryName(repositoryName);
2179 args.setRevision(revision);
2180 args.setMergeQuery(mergeQuery);
2181 args.write(prot);
2182 prot.writeMessageEnd();
2183 }
2184
2185 public MergedEntry getResult() throws CentralDogmaException, org.apache.thrift.TException {
2186 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2187 throw new IllegalStateException("Method call not finished!");
2188 }
2189 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2190 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2191 return (new Client(prot)).recv_mergeFiles();
2192 }
2193 }
2194
2195 public void watchRepository(String projectName, String repositoryName, Revision lastKnownRevision, String pathPattern, long timeoutMillis, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
2196 checkReady();
2197 watchRepository_call method_call = new watchRepository_call(projectName, repositoryName, lastKnownRevision, pathPattern, timeoutMillis, resultHandler, this, ___protocolFactory, ___transport);
2198 this.___currentMethod = method_call;
2199 ___manager.call(method_call);
2200 }
2201
2202 public static class watchRepository_call extends org.apache.thrift.async.TAsyncMethodCall {
2203 private String projectName;
2204 private String repositoryName;
2205 private Revision lastKnownRevision;
2206 private String pathPattern;
2207 private long timeoutMillis;
2208 public watchRepository_call(String projectName, String repositoryName, Revision lastKnownRevision, String pathPattern, long timeoutMillis, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2209 super(client, protocolFactory, transport, resultHandler, false);
2210 this.projectName = projectName;
2211 this.repositoryName = repositoryName;
2212 this.lastKnownRevision = lastKnownRevision;
2213 this.pathPattern = pathPattern;
2214 this.timeoutMillis = timeoutMillis;
2215 }
2216
2217 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2218 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("watchRepository", org.apache.thrift.protocol.TMessageType.CALL, 0));
2219 watchRepository_args args = new watchRepository_args();
2220 args.setProjectName(projectName);
2221 args.setRepositoryName(repositoryName);
2222 args.setLastKnownRevision(lastKnownRevision);
2223 args.setPathPattern(pathPattern);
2224 args.setTimeoutMillis(timeoutMillis);
2225 args.write(prot);
2226 prot.writeMessageEnd();
2227 }
2228
2229 public WatchRepositoryResult getResult() throws CentralDogmaException, org.apache.thrift.TException {
2230 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2231 throw new IllegalStateException("Method call not finished!");
2232 }
2233 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2234 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2235 return (new Client(prot)).recv_watchRepository();
2236 }
2237 }
2238
2239 public void watchFile(String projectName, String repositoryName, Revision lastKnownRevision, Query query, long timeoutMillis, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
2240 checkReady();
2241 watchFile_call method_call = new watchFile_call(projectName, repositoryName, lastKnownRevision, query, timeoutMillis, resultHandler, this, ___protocolFactory, ___transport);
2242 this.___currentMethod = method_call;
2243 ___manager.call(method_call);
2244 }
2245
2246 public static class watchFile_call extends org.apache.thrift.async.TAsyncMethodCall {
2247 private String projectName;
2248 private String repositoryName;
2249 private Revision lastKnownRevision;
2250 private Query query;
2251 private long timeoutMillis;
2252 public watchFile_call(String projectName, String repositoryName, Revision lastKnownRevision, Query query, long timeoutMillis, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2253 super(client, protocolFactory, transport, resultHandler, false);
2254 this.projectName = projectName;
2255 this.repositoryName = repositoryName;
2256 this.lastKnownRevision = lastKnownRevision;
2257 this.query = query;
2258 this.timeoutMillis = timeoutMillis;
2259 }
2260
2261 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2262 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("watchFile", org.apache.thrift.protocol.TMessageType.CALL, 0));
2263 watchFile_args args = new watchFile_args();
2264 args.setProjectName(projectName);
2265 args.setRepositoryName(repositoryName);
2266 args.setLastKnownRevision(lastKnownRevision);
2267 args.setQuery(query);
2268 args.setTimeoutMillis(timeoutMillis);
2269 args.write(prot);
2270 prot.writeMessageEnd();
2271 }
2272
2273 public WatchFileResult getResult() throws CentralDogmaException, org.apache.thrift.TException {
2274 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2275 throw new IllegalStateException("Method call not finished!");
2276 }
2277 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2278 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2279 return (new Client(prot)).recv_watchFile();
2280 }
2281 }
2282
2283 public void getSchema(String projectName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
2284 checkReady();
2285 getSchema_call method_call = new getSchema_call(projectName, resultHandler, this, ___protocolFactory, ___transport);
2286 this.___currentMethod = method_call;
2287 ___manager.call(method_call);
2288 }
2289
2290 public static class getSchema_call extends org.apache.thrift.async.TAsyncMethodCall {
2291 private String projectName;
2292 public getSchema_call(String projectName, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2293 super(client, protocolFactory, transport, resultHandler, false);
2294 this.projectName = projectName;
2295 }
2296
2297 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2298 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getSchema", org.apache.thrift.protocol.TMessageType.CALL, 0));
2299 getSchema_args args = new getSchema_args();
2300 args.setProjectName(projectName);
2301 args.write(prot);
2302 prot.writeMessageEnd();
2303 }
2304
2305 public Schema getResult() throws CentralDogmaException, org.apache.thrift.TException {
2306 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2307 throw new IllegalStateException("Method call not finished!");
2308 }
2309 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2310 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2311 return (new Client(prot)).recv_getSchema();
2312 }
2313 }
2314
2315 public void saveSchema(String projectName, Schema schema, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
2316 checkReady();
2317 saveSchema_call method_call = new saveSchema_call(projectName, schema, resultHandler, this, ___protocolFactory, ___transport);
2318 this.___currentMethod = method_call;
2319 ___manager.call(method_call);
2320 }
2321
2322 public static class saveSchema_call extends org.apache.thrift.async.TAsyncMethodCall {
2323 private String projectName;
2324 private Schema schema;
2325 public saveSchema_call(String projectName, Schema schema, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2326 super(client, protocolFactory, transport, resultHandler, false);
2327 this.projectName = projectName;
2328 this.schema = schema;
2329 }
2330
2331 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2332 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("saveSchema", org.apache.thrift.protocol.TMessageType.CALL, 0));
2333 saveSchema_args args = new saveSchema_args();
2334 args.setProjectName(projectName);
2335 args.setSchema(schema);
2336 args.write(prot);
2337 prot.writeMessageEnd();
2338 }
2339
2340 public void getResult() throws CentralDogmaException, org.apache.thrift.TException {
2341 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2342 throw new IllegalStateException("Method call not finished!");
2343 }
2344 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2345 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2346 (new Client(prot)).recv_saveSchema();
2347 }
2348 }
2349
2350 public void getNamedQuery(String projectName, String name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
2351 checkReady();
2352 getNamedQuery_call method_call = new getNamedQuery_call(projectName, name, resultHandler, this, ___protocolFactory, ___transport);
2353 this.___currentMethod = method_call;
2354 ___manager.call(method_call);
2355 }
2356
2357 public static class getNamedQuery_call extends org.apache.thrift.async.TAsyncMethodCall {
2358 private String projectName;
2359 private String name;
2360 public getNamedQuery_call(String projectName, String name, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2361 super(client, protocolFactory, transport, resultHandler, false);
2362 this.projectName = projectName;
2363 this.name = name;
2364 }
2365
2366 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2367 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getNamedQuery", org.apache.thrift.protocol.TMessageType.CALL, 0));
2368 getNamedQuery_args args = new getNamedQuery_args();
2369 args.setProjectName(projectName);
2370 args.setName(name);
2371 args.write(prot);
2372 prot.writeMessageEnd();
2373 }
2374
2375 public NamedQuery getResult() throws CentralDogmaException, org.apache.thrift.TException {
2376 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2377 throw new IllegalStateException("Method call not finished!");
2378 }
2379 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2380 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2381 return (new Client(prot)).recv_getNamedQuery();
2382 }
2383 }
2384
2385 public void saveNamedQuery(String projectName, NamedQuery namedQuery, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
2386 checkReady();
2387 saveNamedQuery_call method_call = new saveNamedQuery_call(projectName, namedQuery, resultHandler, this, ___protocolFactory, ___transport);
2388 this.___currentMethod = method_call;
2389 ___manager.call(method_call);
2390 }
2391
2392 public static class saveNamedQuery_call extends org.apache.thrift.async.TAsyncMethodCall {
2393 private String projectName;
2394 private NamedQuery namedQuery;
2395 public saveNamedQuery_call(String projectName, NamedQuery namedQuery, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2396 super(client, protocolFactory, transport, resultHandler, false);
2397 this.projectName = projectName;
2398 this.namedQuery = namedQuery;
2399 }
2400
2401 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2402 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("saveNamedQuery", org.apache.thrift.protocol.TMessageType.CALL, 0));
2403 saveNamedQuery_args args = new saveNamedQuery_args();
2404 args.setProjectName(projectName);
2405 args.setNamedQuery(namedQuery);
2406 args.write(prot);
2407 prot.writeMessageEnd();
2408 }
2409
2410 public void getResult() throws CentralDogmaException, org.apache.thrift.TException {
2411 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2412 throw new IllegalStateException("Method call not finished!");
2413 }
2414 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2415 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2416 (new Client(prot)).recv_saveNamedQuery();
2417 }
2418 }
2419
2420 public void removeNamedQuery(String projectName, String name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
2421 checkReady();
2422 removeNamedQuery_call method_call = new removeNamedQuery_call(projectName, name, resultHandler, this, ___protocolFactory, ___transport);
2423 this.___currentMethod = method_call;
2424 ___manager.call(method_call);
2425 }
2426
2427 public static class removeNamedQuery_call extends org.apache.thrift.async.TAsyncMethodCall {
2428 private String projectName;
2429 private String name;
2430 public removeNamedQuery_call(String projectName, String name, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2431 super(client, protocolFactory, transport, resultHandler, false);
2432 this.projectName = projectName;
2433 this.name = name;
2434 }
2435
2436 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2437 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("removeNamedQuery", org.apache.thrift.protocol.TMessageType.CALL, 0));
2438 removeNamedQuery_args args = new removeNamedQuery_args();
2439 args.setProjectName(projectName);
2440 args.setName(name);
2441 args.write(prot);
2442 prot.writeMessageEnd();
2443 }
2444
2445 public void getResult() throws CentralDogmaException, org.apache.thrift.TException {
2446 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2447 throw new IllegalStateException("Method call not finished!");
2448 }
2449 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2450 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2451 (new Client(prot)).recv_removeNamedQuery();
2452 }
2453 }
2454
2455 public void listNamedQueries(String projectName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
2456 checkReady();
2457 listNamedQueries_call method_call = new listNamedQueries_call(projectName, resultHandler, this, ___protocolFactory, ___transport);
2458 this.___currentMethod = method_call;
2459 ___manager.call(method_call);
2460 }
2461
2462 public static class listNamedQueries_call extends org.apache.thrift.async.TAsyncMethodCall {
2463 private String projectName;
2464 public listNamedQueries_call(String projectName, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2465 super(client, protocolFactory, transport, resultHandler, false);
2466 this.projectName = projectName;
2467 }
2468
2469 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2470 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("listNamedQueries", org.apache.thrift.protocol.TMessageType.CALL, 0));
2471 listNamedQueries_args args = new listNamedQueries_args();
2472 args.setProjectName(projectName);
2473 args.write(prot);
2474 prot.writeMessageEnd();
2475 }
2476
2477 public List<NamedQuery> getResult() throws CentralDogmaException, org.apache.thrift.TException {
2478 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2479 throw new IllegalStateException("Method call not finished!");
2480 }
2481 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2482 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2483 return (new Client(prot)).recv_listNamedQueries();
2484 }
2485 }
2486
2487 public void getPlugin(String projectName, String pluginName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
2488 checkReady();
2489 getPlugin_call method_call = new getPlugin_call(projectName, pluginName, resultHandler, this, ___protocolFactory, ___transport);
2490 this.___currentMethod = method_call;
2491 ___manager.call(method_call);
2492 }
2493
2494 public static class getPlugin_call extends org.apache.thrift.async.TAsyncMethodCall {
2495 private String projectName;
2496 private String pluginName;
2497 public getPlugin_call(String projectName, String pluginName, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2498 super(client, protocolFactory, transport, resultHandler, false);
2499 this.projectName = projectName;
2500 this.pluginName = pluginName;
2501 }
2502
2503 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2504 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPlugin", org.apache.thrift.protocol.TMessageType.CALL, 0));
2505 getPlugin_args args = new getPlugin_args();
2506 args.setProjectName(projectName);
2507 args.setPluginName(pluginName);
2508 args.write(prot);
2509 prot.writeMessageEnd();
2510 }
2511
2512 public Plugin getResult() throws CentralDogmaException, org.apache.thrift.TException {
2513 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2514 throw new IllegalStateException("Method call not finished!");
2515 }
2516 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2517 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2518 return (new Client(prot)).recv_getPlugin();
2519 }
2520 }
2521
2522 public void savePlugin(String projectName, Plugin plugin, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
2523 checkReady();
2524 savePlugin_call method_call = new savePlugin_call(projectName, plugin, resultHandler, this, ___protocolFactory, ___transport);
2525 this.___currentMethod = method_call;
2526 ___manager.call(method_call);
2527 }
2528
2529 public static class savePlugin_call extends org.apache.thrift.async.TAsyncMethodCall {
2530 private String projectName;
2531 private Plugin plugin;
2532 public savePlugin_call(String projectName, Plugin plugin, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2533 super(client, protocolFactory, transport, resultHandler, false);
2534 this.projectName = projectName;
2535 this.plugin = plugin;
2536 }
2537
2538 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2539 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("savePlugin", org.apache.thrift.protocol.TMessageType.CALL, 0));
2540 savePlugin_args args = new savePlugin_args();
2541 args.setProjectName(projectName);
2542 args.setPlugin(plugin);
2543 args.write(prot);
2544 prot.writeMessageEnd();
2545 }
2546
2547 public void getResult() throws CentralDogmaException, org.apache.thrift.TException {
2548 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2549 throw new IllegalStateException("Method call not finished!");
2550 }
2551 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2552 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2553 (new Client(prot)).recv_savePlugin();
2554 }
2555 }
2556
2557 public void removePlugin(String projectName, String pluginName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
2558 checkReady();
2559 removePlugin_call method_call = new removePlugin_call(projectName, pluginName, resultHandler, this, ___protocolFactory, ___transport);
2560 this.___currentMethod = method_call;
2561 ___manager.call(method_call);
2562 }
2563
2564 public static class removePlugin_call extends org.apache.thrift.async.TAsyncMethodCall {
2565 private String projectName;
2566 private String pluginName;
2567 public removePlugin_call(String projectName, String pluginName, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2568 super(client, protocolFactory, transport, resultHandler, false);
2569 this.projectName = projectName;
2570 this.pluginName = pluginName;
2571 }
2572
2573 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2574 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("removePlugin", org.apache.thrift.protocol.TMessageType.CALL, 0));
2575 removePlugin_args args = new removePlugin_args();
2576 args.setProjectName(projectName);
2577 args.setPluginName(pluginName);
2578 args.write(prot);
2579 prot.writeMessageEnd();
2580 }
2581
2582 public void getResult() throws CentralDogmaException, org.apache.thrift.TException {
2583 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2584 throw new IllegalStateException("Method call not finished!");
2585 }
2586 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2587 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2588 (new Client(prot)).recv_removePlugin();
2589 }
2590 }
2591
2592 public void listPlugins(String projectName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
2593 checkReady();
2594 listPlugins_call method_call = new listPlugins_call(projectName, resultHandler, this, ___protocolFactory, ___transport);
2595 this.___currentMethod = method_call;
2596 ___manager.call(method_call);
2597 }
2598
2599 public static class listPlugins_call extends org.apache.thrift.async.TAsyncMethodCall {
2600 private String projectName;
2601 public listPlugins_call(String projectName, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2602 super(client, protocolFactory, transport, resultHandler, false);
2603 this.projectName = projectName;
2604 }
2605
2606 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2607 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("listPlugins", org.apache.thrift.protocol.TMessageType.CALL, 0));
2608 listPlugins_args args = new listPlugins_args();
2609 args.setProjectName(projectName);
2610 args.write(prot);
2611 prot.writeMessageEnd();
2612 }
2613
2614 public List<Plugin> getResult() throws CentralDogmaException, org.apache.thrift.TException {
2615 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2616 throw new IllegalStateException("Method call not finished!");
2617 }
2618 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2619 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2620 return (new Client(prot)).recv_listPlugins();
2621 }
2622 }
2623
2624 public void listPluginOperations(String projectName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
2625 checkReady();
2626 listPluginOperations_call method_call = new listPluginOperations_call(projectName, resultHandler, this, ___protocolFactory, ___transport);
2627 this.___currentMethod = method_call;
2628 ___manager.call(method_call);
2629 }
2630
2631 public static class listPluginOperations_call extends org.apache.thrift.async.TAsyncMethodCall {
2632 private String projectName;
2633 public listPluginOperations_call(String projectName, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2634 super(client, protocolFactory, transport, resultHandler, false);
2635 this.projectName = projectName;
2636 }
2637
2638 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2639 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("listPluginOperations", org.apache.thrift.protocol.TMessageType.CALL, 0));
2640 listPluginOperations_args args = new listPluginOperations_args();
2641 args.setProjectName(projectName);
2642 args.write(prot);
2643 prot.writeMessageEnd();
2644 }
2645
2646 public List<PluginOperation> getResult() throws CentralDogmaException, org.apache.thrift.TException {
2647 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2648 throw new IllegalStateException("Method call not finished!");
2649 }
2650 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2651 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2652 return (new Client(prot)).recv_listPluginOperations();
2653 }
2654 }
2655
2656 public void performPluginOperation(String projectName, String pluginName, String operationName, String params, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
2657 checkReady();
2658 performPluginOperation_call method_call = new performPluginOperation_call(projectName, pluginName, operationName, params, resultHandler, this, ___protocolFactory, ___transport);
2659 this.___currentMethod = method_call;
2660 ___manager.call(method_call);
2661 }
2662
2663 public static class performPluginOperation_call extends org.apache.thrift.async.TAsyncMethodCall {
2664 private String projectName;
2665 private String pluginName;
2666 private String operationName;
2667 private String params;
2668 public performPluginOperation_call(String projectName, String pluginName, String operationName, String params, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2669 super(client, protocolFactory, transport, resultHandler, false);
2670 this.projectName = projectName;
2671 this.pluginName = pluginName;
2672 this.operationName = operationName;
2673 this.params = params;
2674 }
2675
2676 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2677 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("performPluginOperation", org.apache.thrift.protocol.TMessageType.CALL, 0));
2678 performPluginOperation_args args = new performPluginOperation_args();
2679 args.setProjectName(projectName);
2680 args.setPluginName(pluginName);
2681 args.setOperationName(operationName);
2682 args.setParams(params);
2683 args.write(prot);
2684 prot.writeMessageEnd();
2685 }
2686
2687 public String getResult() throws CentralDogmaException, org.apache.thrift.TException {
2688 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2689 throw new IllegalStateException("Method call not finished!");
2690 }
2691 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2692 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2693 return (new Client(prot)).recv_performPluginOperation();
2694 }
2695 }
2696
2697 public void queryByNamedQuery(String projectName, String namedQuery, Revision revision, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
2698 checkReady();
2699 queryByNamedQuery_call method_call = new queryByNamedQuery_call(projectName, namedQuery, revision, resultHandler, this, ___protocolFactory, ___transport);
2700 this.___currentMethod = method_call;
2701 ___manager.call(method_call);
2702 }
2703
2704 public static class queryByNamedQuery_call extends org.apache.thrift.async.TAsyncMethodCall {
2705 private String projectName;
2706 private String namedQuery;
2707 private Revision revision;
2708 public queryByNamedQuery_call(String projectName, String namedQuery, Revision revision, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2709 super(client, protocolFactory, transport, resultHandler, false);
2710 this.projectName = projectName;
2711 this.namedQuery = namedQuery;
2712 this.revision = revision;
2713 }
2714
2715 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2716 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("queryByNamedQuery", org.apache.thrift.protocol.TMessageType.CALL, 0));
2717 queryByNamedQuery_args args = new queryByNamedQuery_args();
2718 args.setProjectName(projectName);
2719 args.setNamedQuery(namedQuery);
2720 args.setRevision(revision);
2721 args.write(prot);
2722 prot.writeMessageEnd();
2723 }
2724
2725 public String getResult() throws CentralDogmaException, org.apache.thrift.TException {
2726 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2727 throw new IllegalStateException("Method call not finished!");
2728 }
2729 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2730 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2731 return (new Client(prot)).recv_queryByNamedQuery();
2732 }
2733 }
2734
2735 public void listSubscribers(String projectName, String repositoryName, String path, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
2736 checkReady();
2737 listSubscribers_call method_call = new listSubscribers_call(projectName, repositoryName, path, resultHandler, this, ___protocolFactory, ___transport);
2738 this.___currentMethod = method_call;
2739 ___manager.call(method_call);
2740 }
2741
2742 public static class listSubscribers_call extends org.apache.thrift.async.TAsyncMethodCall {
2743 private String projectName;
2744 private String repositoryName;
2745 private String path;
2746 public listSubscribers_call(String projectName, String repositoryName, String path, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2747 super(client, protocolFactory, transport, resultHandler, false);
2748 this.projectName = projectName;
2749 this.repositoryName = repositoryName;
2750 this.path = path;
2751 }
2752
2753 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2754 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("listSubscribers", org.apache.thrift.protocol.TMessageType.CALL, 0));
2755 listSubscribers_args args = new listSubscribers_args();
2756 args.setProjectName(projectName);
2757 args.setRepositoryName(repositoryName);
2758 args.setPath(path);
2759 args.write(prot);
2760 prot.writeMessageEnd();
2761 }
2762
2763 public List<Subscriber> getResult() throws CentralDogmaException, org.apache.thrift.TException {
2764 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2765 throw new IllegalStateException("Method call not finished!");
2766 }
2767 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2768 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2769 return (new Client(prot)).recv_listSubscribers();
2770 }
2771 }
2772
2773 }
2774
2775 public static class Processor<I extends Iface> extends org.apache.thrift.TBaseProcessor<I> implements org.apache.thrift.TProcessor {
2776 private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
2777 public Processor(I iface) {
2778 super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
2779 }
2780
2781 protected Processor(I iface, Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> processMap) {
2782 super(iface, getProcessMap(processMap));
2783 }
2784
2785 private static <I extends Iface> Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> getProcessMap(Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> processMap) {
2786 processMap.put("createProject", new createProject());
2787 processMap.put("removeProject", new removeProject());
2788 processMap.put("unremoveProject", new unremoveProject());
2789 processMap.put("listProjects", new listProjects());
2790 processMap.put("listRemovedProjects", new listRemovedProjects());
2791 processMap.put("createRepository", new createRepository());
2792 processMap.put("removeRepository", new removeRepository());
2793 processMap.put("unremoveRepository", new unremoveRepository());
2794 processMap.put("listRepositories", new listRepositories());
2795 processMap.put("listRemovedRepositories", new listRemovedRepositories());
2796 processMap.put("normalizeRevision", new normalizeRevision());
2797 processMap.put("listFiles", new listFiles());
2798 processMap.put("getFiles", new getFiles());
2799 processMap.put("getHistory", new getHistory());
2800 processMap.put("getDiffs", new getDiffs());
2801 processMap.put("getPreviewDiffs", new getPreviewDiffs());
2802 processMap.put("push", new push());
2803 processMap.put("getFile", new getFile());
2804 processMap.put("diffFile", new diffFile());
2805 processMap.put("mergeFiles", new mergeFiles());
2806 processMap.put("watchRepository", new watchRepository());
2807 processMap.put("watchFile", new watchFile());
2808 processMap.put("getSchema", new getSchema());
2809 processMap.put("saveSchema", new saveSchema());
2810 processMap.put("getNamedQuery", new getNamedQuery());
2811 processMap.put("saveNamedQuery", new saveNamedQuery());
2812 processMap.put("removeNamedQuery", new removeNamedQuery());
2813 processMap.put("listNamedQueries", new listNamedQueries());
2814 processMap.put("getPlugin", new getPlugin());
2815 processMap.put("savePlugin", new savePlugin());
2816 processMap.put("removePlugin", new removePlugin());
2817 processMap.put("listPlugins", new listPlugins());
2818 processMap.put("listPluginOperations", new listPluginOperations());
2819 processMap.put("performPluginOperation", new performPluginOperation());
2820 processMap.put("queryByNamedQuery", new queryByNamedQuery());
2821 processMap.put("listSubscribers", new listSubscribers());
2822 return processMap;
2823 }
2824
2825 public static class createProject<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createProject_args> {
2826 public createProject() {
2827 super("createProject");
2828 }
2829
2830 public createProject_args getEmptyArgsInstance() {
2831 return new createProject_args();
2832 }
2833
2834 protected boolean isOneway() {
2835 return false;
2836 }
2837
2838 public createProject_result getResult(I iface, createProject_args args) throws org.apache.thrift.TException {
2839 createProject_result result = new createProject_result();
2840 try {
2841 iface.createProject(args.name);
2842 } catch (CentralDogmaException e) {
2843 result.e = e;
2844 }
2845 return result;
2846 }
2847 }
2848
2849 public static class removeProject<I extends Iface> extends org.apache.thrift.ProcessFunction<I, removeProject_args> {
2850 public removeProject() {
2851 super("removeProject");
2852 }
2853
2854 public removeProject_args getEmptyArgsInstance() {
2855 return new removeProject_args();
2856 }
2857
2858 protected boolean isOneway() {
2859 return false;
2860 }
2861
2862 public removeProject_result getResult(I iface, removeProject_args args) throws org.apache.thrift.TException {
2863 removeProject_result result = new removeProject_result();
2864 try {
2865 iface.removeProject(args.name);
2866 } catch (CentralDogmaException e) {
2867 result.e = e;
2868 }
2869 return result;
2870 }
2871 }
2872
2873 public static class unremoveProject<I extends Iface> extends org.apache.thrift.ProcessFunction<I, unremoveProject_args> {
2874 public unremoveProject() {
2875 super("unremoveProject");
2876 }
2877
2878 public unremoveProject_args getEmptyArgsInstance() {
2879 return new unremoveProject_args();
2880 }
2881
2882 protected boolean isOneway() {
2883 return false;
2884 }
2885
2886 public unremoveProject_result getResult(I iface, unremoveProject_args args) throws org.apache.thrift.TException {
2887 unremoveProject_result result = new unremoveProject_result();
2888 try {
2889 iface.unremoveProject(args.name);
2890 } catch (CentralDogmaException e) {
2891 result.e = e;
2892 }
2893 return result;
2894 }
2895 }
2896
2897 public static class listProjects<I extends Iface> extends org.apache.thrift.ProcessFunction<I, listProjects_args> {
2898 public listProjects() {
2899 super("listProjects");
2900 }
2901
2902 public listProjects_args getEmptyArgsInstance() {
2903 return new listProjects_args();
2904 }
2905
2906 protected boolean isOneway() {
2907 return false;
2908 }
2909
2910 public listProjects_result getResult(I iface, listProjects_args args) throws org.apache.thrift.TException {
2911 listProjects_result result = new listProjects_result();
2912 try {
2913 result.success = iface.listProjects();
2914 } catch (CentralDogmaException e) {
2915 result.e = e;
2916 }
2917 return result;
2918 }
2919 }
2920
2921 public static class listRemovedProjects<I extends Iface> extends org.apache.thrift.ProcessFunction<I, listRemovedProjects_args> {
2922 public listRemovedProjects() {
2923 super("listRemovedProjects");
2924 }
2925
2926 public listRemovedProjects_args getEmptyArgsInstance() {
2927 return new listRemovedProjects_args();
2928 }
2929
2930 protected boolean isOneway() {
2931 return false;
2932 }
2933
2934 public listRemovedProjects_result getResult(I iface, listRemovedProjects_args args) throws org.apache.thrift.TException {
2935 listRemovedProjects_result result = new listRemovedProjects_result();
2936 try {
2937 result.success = iface.listRemovedProjects();
2938 } catch (CentralDogmaException e) {
2939 result.e = e;
2940 }
2941 return result;
2942 }
2943 }
2944
2945 public static class createRepository<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createRepository_args> {
2946 public createRepository() {
2947 super("createRepository");
2948 }
2949
2950 public createRepository_args getEmptyArgsInstance() {
2951 return new createRepository_args();
2952 }
2953
2954 protected boolean isOneway() {
2955 return false;
2956 }
2957
2958 public createRepository_result getResult(I iface, createRepository_args args) throws org.apache.thrift.TException {
2959 createRepository_result result = new createRepository_result();
2960 try {
2961 iface.createRepository(args.projectName, args.repositoryName);
2962 } catch (CentralDogmaException e) {
2963 result.e = e;
2964 }
2965 return result;
2966 }
2967 }
2968
2969 public static class removeRepository<I extends Iface> extends org.apache.thrift.ProcessFunction<I, removeRepository_args> {
2970 public removeRepository() {
2971 super("removeRepository");
2972 }
2973
2974 public removeRepository_args getEmptyArgsInstance() {
2975 return new removeRepository_args();
2976 }
2977
2978 protected boolean isOneway() {
2979 return false;
2980 }
2981
2982 public removeRepository_result getResult(I iface, removeRepository_args args) throws org.apache.thrift.TException {
2983 removeRepository_result result = new removeRepository_result();
2984 try {
2985 iface.removeRepository(args.projectName, args.repositoryName);
2986 } catch (CentralDogmaException e) {
2987 result.e = e;
2988 }
2989 return result;
2990 }
2991 }
2992
2993 public static class unremoveRepository<I extends Iface> extends org.apache.thrift.ProcessFunction<I, unremoveRepository_args> {
2994 public unremoveRepository() {
2995 super("unremoveRepository");
2996 }
2997
2998 public unremoveRepository_args getEmptyArgsInstance() {
2999 return new unremoveRepository_args();
3000 }
3001
3002 protected boolean isOneway() {
3003 return false;
3004 }
3005
3006 public unremoveRepository_result getResult(I iface, unremoveRepository_args args) throws org.apache.thrift.TException {
3007 unremoveRepository_result result = new unremoveRepository_result();
3008 try {
3009 iface.unremoveRepository(args.projectName, args.repositoryName);
3010 } catch (CentralDogmaException e) {
3011 result.e = e;
3012 }
3013 return result;
3014 }
3015 }
3016
3017 public static class listRepositories<I extends Iface> extends org.apache.thrift.ProcessFunction<I, listRepositories_args> {
3018 public listRepositories() {
3019 super("listRepositories");
3020 }
3021
3022 public listRepositories_args getEmptyArgsInstance() {
3023 return new listRepositories_args();
3024 }
3025
3026 protected boolean isOneway() {
3027 return false;
3028 }
3029
3030 public listRepositories_result getResult(I iface, listRepositories_args args) throws org.apache.thrift.TException {
3031 listRepositories_result result = new listRepositories_result();
3032 try {
3033 result.success = iface.listRepositories(args.projectName);
3034 } catch (CentralDogmaException e) {
3035 result.e = e;
3036 }
3037 return result;
3038 }
3039 }
3040
3041 public static class listRemovedRepositories<I extends Iface> extends org.apache.thrift.ProcessFunction<I, listRemovedRepositories_args> {
3042 public listRemovedRepositories() {
3043 super("listRemovedRepositories");
3044 }
3045
3046 public listRemovedRepositories_args getEmptyArgsInstance() {
3047 return new listRemovedRepositories_args();
3048 }
3049
3050 protected boolean isOneway() {
3051 return false;
3052 }
3053
3054 public listRemovedRepositories_result getResult(I iface, listRemovedRepositories_args args) throws org.apache.thrift.TException {
3055 listRemovedRepositories_result result = new listRemovedRepositories_result();
3056 try {
3057 result.success = iface.listRemovedRepositories(args.projectName);
3058 } catch (CentralDogmaException e) {
3059 result.e = e;
3060 }
3061 return result;
3062 }
3063 }
3064
3065 public static class normalizeRevision<I extends Iface> extends org.apache.thrift.ProcessFunction<I, normalizeRevision_args> {
3066 public normalizeRevision() {
3067 super("normalizeRevision");
3068 }
3069
3070 public normalizeRevision_args getEmptyArgsInstance() {
3071 return new normalizeRevision_args();
3072 }
3073
3074 protected boolean isOneway() {
3075 return false;
3076 }
3077
3078 public normalizeRevision_result getResult(I iface, normalizeRevision_args args) throws org.apache.thrift.TException {
3079 normalizeRevision_result result = new normalizeRevision_result();
3080 try {
3081 result.success = iface.normalizeRevision(args.projectName, args.repositoryName, args.revision);
3082 } catch (CentralDogmaException e) {
3083 result.e = e;
3084 }
3085 return result;
3086 }
3087 }
3088
3089 public static class listFiles<I extends Iface> extends org.apache.thrift.ProcessFunction<I, listFiles_args> {
3090 public listFiles() {
3091 super("listFiles");
3092 }
3093
3094 public listFiles_args getEmptyArgsInstance() {
3095 return new listFiles_args();
3096 }
3097
3098 protected boolean isOneway() {
3099 return false;
3100 }
3101
3102 public listFiles_result getResult(I iface, listFiles_args args) throws org.apache.thrift.TException {
3103 listFiles_result result = new listFiles_result();
3104 try {
3105 result.success = iface.listFiles(args.projectName, args.repositoryName, args.revision, args.pathPattern);
3106 } catch (CentralDogmaException e) {
3107 result.e = e;
3108 }
3109 return result;
3110 }
3111 }
3112
3113 public static class getFiles<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getFiles_args> {
3114 public getFiles() {
3115 super("getFiles");
3116 }
3117
3118 public getFiles_args getEmptyArgsInstance() {
3119 return new getFiles_args();
3120 }
3121
3122 protected boolean isOneway() {
3123 return false;
3124 }
3125
3126 public getFiles_result getResult(I iface, getFiles_args args) throws org.apache.thrift.TException {
3127 getFiles_result result = new getFiles_result();
3128 try {
3129 result.success = iface.getFiles(args.projectName, args.repositoryName, args.revision, args.pathPattern);
3130 } catch (CentralDogmaException e) {
3131 result.e = e;
3132 }
3133 return result;
3134 }
3135 }
3136
3137 public static class getHistory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getHistory_args> {
3138 public getHistory() {
3139 super("getHistory");
3140 }
3141
3142 public getHistory_args getEmptyArgsInstance() {
3143 return new getHistory_args();
3144 }
3145
3146 protected boolean isOneway() {
3147 return false;
3148 }
3149
3150 public getHistory_result getResult(I iface, getHistory_args args) throws org.apache.thrift.TException {
3151 getHistory_result result = new getHistory_result();
3152 try {
3153 result.success = iface.getHistory(args.projectName, args.repositoryName, args.from, args.to, args.pathPattern);
3154 } catch (CentralDogmaException e) {
3155 result.e = e;
3156 }
3157 return result;
3158 }
3159 }
3160
3161 public static class getDiffs<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getDiffs_args> {
3162 public getDiffs() {
3163 super("getDiffs");
3164 }
3165
3166 public getDiffs_args getEmptyArgsInstance() {
3167 return new getDiffs_args();
3168 }
3169
3170 protected boolean isOneway() {
3171 return false;
3172 }
3173
3174 public getDiffs_result getResult(I iface, getDiffs_args args) throws org.apache.thrift.TException {
3175 getDiffs_result result = new getDiffs_result();
3176 try {
3177 result.success = iface.getDiffs(args.projectName, args.repositoryName, args.from, args.to, args.pathPattern);
3178 } catch (CentralDogmaException e) {
3179 result.e = e;
3180 }
3181 return result;
3182 }
3183 }
3184
3185 public static class getPreviewDiffs<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPreviewDiffs_args> {
3186 public getPreviewDiffs() {
3187 super("getPreviewDiffs");
3188 }
3189
3190 public getPreviewDiffs_args getEmptyArgsInstance() {
3191 return new getPreviewDiffs_args();
3192 }
3193
3194 protected boolean isOneway() {
3195 return false;
3196 }
3197
3198 public getPreviewDiffs_result getResult(I iface, getPreviewDiffs_args args) throws org.apache.thrift.TException {
3199 getPreviewDiffs_result result = new getPreviewDiffs_result();
3200 try {
3201 result.success = iface.getPreviewDiffs(args.projectName, args.repositoryName, args.baseRevision, args.changes);
3202 } catch (CentralDogmaException e) {
3203 result.e = e;
3204 }
3205 return result;
3206 }
3207 }
3208
3209 public static class push<I extends Iface> extends org.apache.thrift.ProcessFunction<I, push_args> {
3210 public push() {
3211 super("push");
3212 }
3213
3214 public push_args getEmptyArgsInstance() {
3215 return new push_args();
3216 }
3217
3218 protected boolean isOneway() {
3219 return false;
3220 }
3221
3222 public push_result getResult(I iface, push_args args) throws org.apache.thrift.TException {
3223 push_result result = new push_result();
3224 try {
3225 result.success = iface.push(args.projectName, args.repositoryName, args.baseRevision, args.author, args.summary, args.detail, args.changes);
3226 } catch (CentralDogmaException e) {
3227 result.e = e;
3228 }
3229 return result;
3230 }
3231 }
3232
3233 public static class getFile<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getFile_args> {
3234 public getFile() {
3235 super("getFile");
3236 }
3237
3238 public getFile_args getEmptyArgsInstance() {
3239 return new getFile_args();
3240 }
3241
3242 protected boolean isOneway() {
3243 return false;
3244 }
3245
3246 public getFile_result getResult(I iface, getFile_args args) throws org.apache.thrift.TException {
3247 getFile_result result = new getFile_result();
3248 try {
3249 result.success = iface.getFile(args.projectName, args.repositoryName, args.revision, args.query);
3250 } catch (CentralDogmaException e) {
3251 result.e = e;
3252 }
3253 return result;
3254 }
3255 }
3256
3257 public static class diffFile<I extends Iface> extends org.apache.thrift.ProcessFunction<I, diffFile_args> {
3258 public diffFile() {
3259 super("diffFile");
3260 }
3261
3262 public diffFile_args getEmptyArgsInstance() {
3263 return new diffFile_args();
3264 }
3265
3266 protected boolean isOneway() {
3267 return false;
3268 }
3269
3270 public diffFile_result getResult(I iface, diffFile_args args) throws org.apache.thrift.TException {
3271 diffFile_result result = new diffFile_result();
3272 try {
3273 result.success = iface.diffFile(args.projectName, args.repositoryName, args.from, args.to, args.query);
3274 } catch (CentralDogmaException e) {
3275 result.e = e;
3276 }
3277 return result;
3278 }
3279 }
3280
3281 public static class mergeFiles<I extends Iface> extends org.apache.thrift.ProcessFunction<I, mergeFiles_args> {
3282 public mergeFiles() {
3283 super("mergeFiles");
3284 }
3285
3286 public mergeFiles_args getEmptyArgsInstance() {
3287 return new mergeFiles_args();
3288 }
3289
3290 protected boolean isOneway() {
3291 return false;
3292 }
3293
3294 public mergeFiles_result getResult(I iface, mergeFiles_args args) throws org.apache.thrift.TException {
3295 mergeFiles_result result = new mergeFiles_result();
3296 try {
3297 result.success = iface.mergeFiles(args.projectName, args.repositoryName, args.revision, args.mergeQuery);
3298 } catch (CentralDogmaException e) {
3299 result.e = e;
3300 }
3301 return result;
3302 }
3303 }
3304
3305 public static class watchRepository<I extends Iface> extends org.apache.thrift.ProcessFunction<I, watchRepository_args> {
3306 public watchRepository() {
3307 super("watchRepository");
3308 }
3309
3310 public watchRepository_args getEmptyArgsInstance() {
3311 return new watchRepository_args();
3312 }
3313
3314 protected boolean isOneway() {
3315 return false;
3316 }
3317
3318 public watchRepository_result getResult(I iface, watchRepository_args args) throws org.apache.thrift.TException {
3319 watchRepository_result result = new watchRepository_result();
3320 try {
3321 result.success = iface.watchRepository(args.projectName, args.repositoryName, args.lastKnownRevision, args.pathPattern, args.timeoutMillis);
3322 } catch (CentralDogmaException e) {
3323 result.e = e;
3324 }
3325 return result;
3326 }
3327 }
3328
3329 public static class watchFile<I extends Iface> extends org.apache.thrift.ProcessFunction<I, watchFile_args> {
3330 public watchFile() {
3331 super("watchFile");
3332 }
3333
3334 public watchFile_args getEmptyArgsInstance() {
3335 return new watchFile_args();
3336 }
3337
3338 protected boolean isOneway() {
3339 return false;
3340 }
3341
3342 public watchFile_result getResult(I iface, watchFile_args args) throws org.apache.thrift.TException {
3343 watchFile_result result = new watchFile_result();
3344 try {
3345 result.success = iface.watchFile(args.projectName, args.repositoryName, args.lastKnownRevision, args.query, args.timeoutMillis);
3346 } catch (CentralDogmaException e) {
3347 result.e = e;
3348 }
3349 return result;
3350 }
3351 }
3352
3353 public static class getSchema<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getSchema_args> {
3354 public getSchema() {
3355 super("getSchema");
3356 }
3357
3358 public getSchema_args getEmptyArgsInstance() {
3359 return new getSchema_args();
3360 }
3361
3362 protected boolean isOneway() {
3363 return false;
3364 }
3365
3366 public getSchema_result getResult(I iface, getSchema_args args) throws org.apache.thrift.TException {
3367 getSchema_result result = new getSchema_result();
3368 try {
3369 result.success = iface.getSchema(args.projectName);
3370 } catch (CentralDogmaException e) {
3371 result.e = e;
3372 }
3373 return result;
3374 }
3375 }
3376
3377 public static class saveSchema<I extends Iface> extends org.apache.thrift.ProcessFunction<I, saveSchema_args> {
3378 public saveSchema() {
3379 super("saveSchema");
3380 }
3381
3382 public saveSchema_args getEmptyArgsInstance() {
3383 return new saveSchema_args();
3384 }
3385
3386 protected boolean isOneway() {
3387 return false;
3388 }
3389
3390 public saveSchema_result getResult(I iface, saveSchema_args args) throws org.apache.thrift.TException {
3391 saveSchema_result result = new saveSchema_result();
3392 try {
3393 iface.saveSchema(args.projectName, args.schema);
3394 } catch (CentralDogmaException e) {
3395 result.e = e;
3396 }
3397 return result;
3398 }
3399 }
3400
3401 public static class getNamedQuery<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getNamedQuery_args> {
3402 public getNamedQuery() {
3403 super("getNamedQuery");
3404 }
3405
3406 public getNamedQuery_args getEmptyArgsInstance() {
3407 return new getNamedQuery_args();
3408 }
3409
3410 protected boolean isOneway() {
3411 return false;
3412 }
3413
3414 public getNamedQuery_result getResult(I iface, getNamedQuery_args args) throws org.apache.thrift.TException {
3415 getNamedQuery_result result = new getNamedQuery_result();
3416 try {
3417 result.success = iface.getNamedQuery(args.projectName, args.name);
3418 } catch (CentralDogmaException e) {
3419 result.e = e;
3420 }
3421 return result;
3422 }
3423 }
3424
3425 public static class saveNamedQuery<I extends Iface> extends org.apache.thrift.ProcessFunction<I, saveNamedQuery_args> {
3426 public saveNamedQuery() {
3427 super("saveNamedQuery");
3428 }
3429
3430 public saveNamedQuery_args getEmptyArgsInstance() {
3431 return new saveNamedQuery_args();
3432 }
3433
3434 protected boolean isOneway() {
3435 return false;
3436 }
3437
3438 public saveNamedQuery_result getResult(I iface, saveNamedQuery_args args) throws org.apache.thrift.TException {
3439 saveNamedQuery_result result = new saveNamedQuery_result();
3440 try {
3441 iface.saveNamedQuery(args.projectName, args.namedQuery);
3442 } catch (CentralDogmaException e) {
3443 result.e = e;
3444 }
3445 return result;
3446 }
3447 }
3448
3449 public static class removeNamedQuery<I extends Iface> extends org.apache.thrift.ProcessFunction<I, removeNamedQuery_args> {
3450 public removeNamedQuery() {
3451 super("removeNamedQuery");
3452 }
3453
3454 public removeNamedQuery_args getEmptyArgsInstance() {
3455 return new removeNamedQuery_args();
3456 }
3457
3458 protected boolean isOneway() {
3459 return false;
3460 }
3461
3462 public removeNamedQuery_result getResult(I iface, removeNamedQuery_args args) throws org.apache.thrift.TException {
3463 removeNamedQuery_result result = new removeNamedQuery_result();
3464 try {
3465 iface.removeNamedQuery(args.projectName, args.name);
3466 } catch (CentralDogmaException e) {
3467 result.e = e;
3468 }
3469 return result;
3470 }
3471 }
3472
3473 public static class listNamedQueries<I extends Iface> extends org.apache.thrift.ProcessFunction<I, listNamedQueries_args> {
3474 public listNamedQueries() {
3475 super("listNamedQueries");
3476 }
3477
3478 public listNamedQueries_args getEmptyArgsInstance() {
3479 return new listNamedQueries_args();
3480 }
3481
3482 protected boolean isOneway() {
3483 return false;
3484 }
3485
3486 public listNamedQueries_result getResult(I iface, listNamedQueries_args args) throws org.apache.thrift.TException {
3487 listNamedQueries_result result = new listNamedQueries_result();
3488 try {
3489 result.success = iface.listNamedQueries(args.projectName);
3490 } catch (CentralDogmaException e) {
3491 result.e = e;
3492 }
3493 return result;
3494 }
3495 }
3496
3497 public static class getPlugin<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPlugin_args> {
3498 public getPlugin() {
3499 super("getPlugin");
3500 }
3501
3502 public getPlugin_args getEmptyArgsInstance() {
3503 return new getPlugin_args();
3504 }
3505
3506 protected boolean isOneway() {
3507 return false;
3508 }
3509
3510 public getPlugin_result getResult(I iface, getPlugin_args args) throws org.apache.thrift.TException {
3511 getPlugin_result result = new getPlugin_result();
3512 try {
3513 result.success = iface.getPlugin(args.projectName, args.pluginName);
3514 } catch (CentralDogmaException e) {
3515 result.e = e;
3516 }
3517 return result;
3518 }
3519 }
3520
3521 public static class savePlugin<I extends Iface> extends org.apache.thrift.ProcessFunction<I, savePlugin_args> {
3522 public savePlugin() {
3523 super("savePlugin");
3524 }
3525
3526 public savePlugin_args getEmptyArgsInstance() {
3527 return new savePlugin_args();
3528 }
3529
3530 protected boolean isOneway() {
3531 return false;
3532 }
3533
3534 public savePlugin_result getResult(I iface, savePlugin_args args) throws org.apache.thrift.TException {
3535 savePlugin_result result = new savePlugin_result();
3536 try {
3537 iface.savePlugin(args.projectName, args.plugin);
3538 } catch (CentralDogmaException e) {
3539 result.e = e;
3540 }
3541 return result;
3542 }
3543 }
3544
3545 public static class removePlugin<I extends Iface> extends org.apache.thrift.ProcessFunction<I, removePlugin_args> {
3546 public removePlugin() {
3547 super("removePlugin");
3548 }
3549
3550 public removePlugin_args getEmptyArgsInstance() {
3551 return new removePlugin_args();
3552 }
3553
3554 protected boolean isOneway() {
3555 return false;
3556 }
3557
3558 public removePlugin_result getResult(I iface, removePlugin_args args) throws org.apache.thrift.TException {
3559 removePlugin_result result = new removePlugin_result();
3560 try {
3561 iface.removePlugin(args.projectName, args.pluginName);
3562 } catch (CentralDogmaException e) {
3563 result.e = e;
3564 }
3565 return result;
3566 }
3567 }
3568
3569 public static class listPlugins<I extends Iface> extends org.apache.thrift.ProcessFunction<I, listPlugins_args> {
3570 public listPlugins() {
3571 super("listPlugins");
3572 }
3573
3574 public listPlugins_args getEmptyArgsInstance() {
3575 return new listPlugins_args();
3576 }
3577
3578 protected boolean isOneway() {
3579 return false;
3580 }
3581
3582 public listPlugins_result getResult(I iface, listPlugins_args args) throws org.apache.thrift.TException {
3583 listPlugins_result result = new listPlugins_result();
3584 try {
3585 result.success = iface.listPlugins(args.projectName);
3586 } catch (CentralDogmaException e) {
3587 result.e = e;
3588 }
3589 return result;
3590 }
3591 }
3592
3593 public static class listPluginOperations<I extends Iface> extends org.apache.thrift.ProcessFunction<I, listPluginOperations_args> {
3594 public listPluginOperations() {
3595 super("listPluginOperations");
3596 }
3597
3598 public listPluginOperations_args getEmptyArgsInstance() {
3599 return new listPluginOperations_args();
3600 }
3601
3602 protected boolean isOneway() {
3603 return false;
3604 }
3605
3606 public listPluginOperations_result getResult(I iface, listPluginOperations_args args) throws org.apache.thrift.TException {
3607 listPluginOperations_result result = new listPluginOperations_result();
3608 try {
3609 result.success = iface.listPluginOperations(args.projectName);
3610 } catch (CentralDogmaException e) {
3611 result.e = e;
3612 }
3613 return result;
3614 }
3615 }
3616
3617 public static class performPluginOperation<I extends Iface> extends org.apache.thrift.ProcessFunction<I, performPluginOperation_args> {
3618 public performPluginOperation() {
3619 super("performPluginOperation");
3620 }
3621
3622 public performPluginOperation_args getEmptyArgsInstance() {
3623 return new performPluginOperation_args();
3624 }
3625
3626 protected boolean isOneway() {
3627 return false;
3628 }
3629
3630 public performPluginOperation_result getResult(I iface, performPluginOperation_args args) throws org.apache.thrift.TException {
3631 performPluginOperation_result result = new performPluginOperation_result();
3632 try {
3633 result.success = iface.performPluginOperation(args.projectName, args.pluginName, args.operationName, args.params);
3634 } catch (CentralDogmaException e) {
3635 result.e = e;
3636 }
3637 return result;
3638 }
3639 }
3640
3641 public static class queryByNamedQuery<I extends Iface> extends org.apache.thrift.ProcessFunction<I, queryByNamedQuery_args> {
3642 public queryByNamedQuery() {
3643 super("queryByNamedQuery");
3644 }
3645
3646 public queryByNamedQuery_args getEmptyArgsInstance() {
3647 return new queryByNamedQuery_args();
3648 }
3649
3650 protected boolean isOneway() {
3651 return false;
3652 }
3653
3654 public queryByNamedQuery_result getResult(I iface, queryByNamedQuery_args args) throws org.apache.thrift.TException {
3655 queryByNamedQuery_result result = new queryByNamedQuery_result();
3656 try {
3657 result.success = iface.queryByNamedQuery(args.projectName, args.namedQuery, args.revision);
3658 } catch (CentralDogmaException e) {
3659 result.e = e;
3660 }
3661 return result;
3662 }
3663 }
3664
3665 public static class listSubscribers<I extends Iface> extends org.apache.thrift.ProcessFunction<I, listSubscribers_args> {
3666 public listSubscribers() {
3667 super("listSubscribers");
3668 }
3669
3670 public listSubscribers_args getEmptyArgsInstance() {
3671 return new listSubscribers_args();
3672 }
3673
3674 protected boolean isOneway() {
3675 return false;
3676 }
3677
3678 public listSubscribers_result getResult(I iface, listSubscribers_args args) throws org.apache.thrift.TException {
3679 listSubscribers_result result = new listSubscribers_result();
3680 try {
3681 result.success = iface.listSubscribers(args.projectName, args.repositoryName, args.path);
3682 } catch (CentralDogmaException e) {
3683 result.e = e;
3684 }
3685 return result;
3686 }
3687 }
3688
3689 }
3690
3691 public static class AsyncProcessor<I extends AsyncIface> extends org.apache.thrift.TBaseAsyncProcessor<I> {
3692 private static final Logger LOGGER = LoggerFactory.getLogger(AsyncProcessor.class.getName());
3693 public AsyncProcessor(I iface) {
3694 super(iface, getProcessMap(new HashMap<String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase, ?>>()));
3695 }
3696
3697 protected AsyncProcessor(I iface, Map<String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase, ?>> processMap) {
3698 super(iface, getProcessMap(processMap));
3699 }
3700
3701 private static <I extends AsyncIface> Map<String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase,?>> getProcessMap(Map<String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase, ?>> processMap) {
3702 processMap.put("createProject", new createProject());
3703 processMap.put("removeProject", new removeProject());
3704 processMap.put("unremoveProject", new unremoveProject());
3705 processMap.put("listProjects", new listProjects());
3706 processMap.put("listRemovedProjects", new listRemovedProjects());
3707 processMap.put("createRepository", new createRepository());
3708 processMap.put("removeRepository", new removeRepository());
3709 processMap.put("unremoveRepository", new unremoveRepository());
3710 processMap.put("listRepositories", new listRepositories());
3711 processMap.put("listRemovedRepositories", new listRemovedRepositories());
3712 processMap.put("normalizeRevision", new normalizeRevision());
3713 processMap.put("listFiles", new listFiles());
3714 processMap.put("getFiles", new getFiles());
3715 processMap.put("getHistory", new getHistory());
3716 processMap.put("getDiffs", new getDiffs());
3717 processMap.put("getPreviewDiffs", new getPreviewDiffs());
3718 processMap.put("push", new push());
3719 processMap.put("getFile", new getFile());
3720 processMap.put("diffFile", new diffFile());
3721 processMap.put("mergeFiles", new mergeFiles());
3722 processMap.put("watchRepository", new watchRepository());
3723 processMap.put("watchFile", new watchFile());
3724 processMap.put("getSchema", new getSchema());
3725 processMap.put("saveSchema", new saveSchema());
3726 processMap.put("getNamedQuery", new getNamedQuery());
3727 processMap.put("saveNamedQuery", new saveNamedQuery());
3728 processMap.put("removeNamedQuery", new removeNamedQuery());
3729 processMap.put("listNamedQueries", new listNamedQueries());
3730 processMap.put("getPlugin", new getPlugin());
3731 processMap.put("savePlugin", new savePlugin());
3732 processMap.put("removePlugin", new removePlugin());
3733 processMap.put("listPlugins", new listPlugins());
3734 processMap.put("listPluginOperations", new listPluginOperations());
3735 processMap.put("performPluginOperation", new performPluginOperation());
3736 processMap.put("queryByNamedQuery", new queryByNamedQuery());
3737 processMap.put("listSubscribers", new listSubscribers());
3738 return processMap;
3739 }
3740
3741 public static class createProject<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, createProject_args, Void> {
3742 public createProject() {
3743 super("createProject");
3744 }
3745
3746 public createProject_args getEmptyArgsInstance() {
3747 return new createProject_args();
3748 }
3749
3750 public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
3751 final org.apache.thrift.AsyncProcessFunction fcall = this;
3752 return new AsyncMethodCallback<Void>() {
3753 public void onComplete(Void o) {
3754 createProject_result result = new createProject_result();
3755 try {
3756 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
3757 return;
3758 } catch (Exception e) {
3759 LOGGER.error("Exception writing to internal frame buffer", e);
3760 }
3761 fb.close();
3762 }
3763 public void onError(Exception e) {
3764 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
3765 org.apache.thrift.TBase msg;
3766 createProject_result result = new createProject_result();
3767 if (e instanceof CentralDogmaException) {
3768 result.e = (CentralDogmaException) e;
3769 result.setEIsSet(true);
3770 msg = result;
3771 }
3772 else
3773 {
3774 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
3775 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
3776 }
3777 try {
3778 fcall.sendResponse(fb,msg,msgType,seqid);
3779 return;
3780 } catch (Exception ex) {
3781 LOGGER.error("Exception writing to internal frame buffer", ex);
3782 }
3783 fb.close();
3784 }
3785 };
3786 }
3787
3788 protected boolean isOneway() {
3789 return false;
3790 }
3791
3792 public void start(I iface, createProject_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException {
3793 iface.createProject(args.name,resultHandler);
3794 }
3795 }
3796
3797 public static class removeProject<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, removeProject_args, Void> {
3798 public removeProject() {
3799 super("removeProject");
3800 }
3801
3802 public removeProject_args getEmptyArgsInstance() {
3803 return new removeProject_args();
3804 }
3805
3806 public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
3807 final org.apache.thrift.AsyncProcessFunction fcall = this;
3808 return new AsyncMethodCallback<Void>() {
3809 public void onComplete(Void o) {
3810 removeProject_result result = new removeProject_result();
3811 try {
3812 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
3813 return;
3814 } catch (Exception e) {
3815 LOGGER.error("Exception writing to internal frame buffer", e);
3816 }
3817 fb.close();
3818 }
3819 public void onError(Exception e) {
3820 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
3821 org.apache.thrift.TBase msg;
3822 removeProject_result result = new removeProject_result();
3823 if (e instanceof CentralDogmaException) {
3824 result.e = (CentralDogmaException) e;
3825 result.setEIsSet(true);
3826 msg = result;
3827 }
3828 else
3829 {
3830 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
3831 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
3832 }
3833 try {
3834 fcall.sendResponse(fb,msg,msgType,seqid);
3835 return;
3836 } catch (Exception ex) {
3837 LOGGER.error("Exception writing to internal frame buffer", ex);
3838 }
3839 fb.close();
3840 }
3841 };
3842 }
3843
3844 protected boolean isOneway() {
3845 return false;
3846 }
3847
3848 public void start(I iface, removeProject_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException {
3849 iface.removeProject(args.name,resultHandler);
3850 }
3851 }
3852
3853 public static class unremoveProject<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, unremoveProject_args, Void> {
3854 public unremoveProject() {
3855 super("unremoveProject");
3856 }
3857
3858 public unremoveProject_args getEmptyArgsInstance() {
3859 return new unremoveProject_args();
3860 }
3861
3862 public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
3863 final org.apache.thrift.AsyncProcessFunction fcall = this;
3864 return new AsyncMethodCallback<Void>() {
3865 public void onComplete(Void o) {
3866 unremoveProject_result result = new unremoveProject_result();
3867 try {
3868 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
3869 return;
3870 } catch (Exception e) {
3871 LOGGER.error("Exception writing to internal frame buffer", e);
3872 }
3873 fb.close();
3874 }
3875 public void onError(Exception e) {
3876 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
3877 org.apache.thrift.TBase msg;
3878 unremoveProject_result result = new unremoveProject_result();
3879 if (e instanceof CentralDogmaException) {
3880 result.e = (CentralDogmaException) e;
3881 result.setEIsSet(true);
3882 msg = result;
3883 }
3884 else
3885 {
3886 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
3887 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
3888 }
3889 try {
3890 fcall.sendResponse(fb,msg,msgType,seqid);
3891 return;
3892 } catch (Exception ex) {
3893 LOGGER.error("Exception writing to internal frame buffer", ex);
3894 }
3895 fb.close();
3896 }
3897 };
3898 }
3899
3900 protected boolean isOneway() {
3901 return false;
3902 }
3903
3904 public void start(I iface, unremoveProject_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException {
3905 iface.unremoveProject(args.name,resultHandler);
3906 }
3907 }
3908
3909 public static class listProjects<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, listProjects_args, List<Project>> {
3910 public listProjects() {
3911 super("listProjects");
3912 }
3913
3914 public listProjects_args getEmptyArgsInstance() {
3915 return new listProjects_args();
3916 }
3917
3918 public AsyncMethodCallback<List<Project>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
3919 final org.apache.thrift.AsyncProcessFunction fcall = this;
3920 return new AsyncMethodCallback<List<Project>>() {
3921 public void onComplete(List<Project> o) {
3922 listProjects_result result = new listProjects_result();
3923 result.success = o;
3924 try {
3925 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
3926 return;
3927 } catch (Exception e) {
3928 LOGGER.error("Exception writing to internal frame buffer", e);
3929 }
3930 fb.close();
3931 }
3932 public void onError(Exception e) {
3933 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
3934 org.apache.thrift.TBase msg;
3935 listProjects_result result = new listProjects_result();
3936 if (e instanceof CentralDogmaException) {
3937 result.e = (CentralDogmaException) e;
3938 result.setEIsSet(true);
3939 msg = result;
3940 }
3941 else
3942 {
3943 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
3944 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
3945 }
3946 try {
3947 fcall.sendResponse(fb,msg,msgType,seqid);
3948 return;
3949 } catch (Exception ex) {
3950 LOGGER.error("Exception writing to internal frame buffer", ex);
3951 }
3952 fb.close();
3953 }
3954 };
3955 }
3956
3957 protected boolean isOneway() {
3958 return false;
3959 }
3960
3961 public void start(I iface, listProjects_args args, org.apache.thrift.async.AsyncMethodCallback<List<Project>> resultHandler) throws TException {
3962 iface.listProjects(resultHandler);
3963 }
3964 }
3965
3966 public static class listRemovedProjects<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, listRemovedProjects_args, Set<String>> {
3967 public listRemovedProjects() {
3968 super("listRemovedProjects");
3969 }
3970
3971 public listRemovedProjects_args getEmptyArgsInstance() {
3972 return new listRemovedProjects_args();
3973 }
3974
3975 public AsyncMethodCallback<Set<String>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
3976 final org.apache.thrift.AsyncProcessFunction fcall = this;
3977 return new AsyncMethodCallback<Set<String>>() {
3978 public void onComplete(Set<String> o) {
3979 listRemovedProjects_result result = new listRemovedProjects_result();
3980 result.success = o;
3981 try {
3982 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
3983 return;
3984 } catch (Exception e) {
3985 LOGGER.error("Exception writing to internal frame buffer", e);
3986 }
3987 fb.close();
3988 }
3989 public void onError(Exception e) {
3990 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
3991 org.apache.thrift.TBase msg;
3992 listRemovedProjects_result result = new listRemovedProjects_result();
3993 if (e instanceof CentralDogmaException) {
3994 result.e = (CentralDogmaException) e;
3995 result.setEIsSet(true);
3996 msg = result;
3997 }
3998 else
3999 {
4000 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
4001 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
4002 }
4003 try {
4004 fcall.sendResponse(fb,msg,msgType,seqid);
4005 return;
4006 } catch (Exception ex) {
4007 LOGGER.error("Exception writing to internal frame buffer", ex);
4008 }
4009 fb.close();
4010 }
4011 };
4012 }
4013
4014 protected boolean isOneway() {
4015 return false;
4016 }
4017
4018 public void start(I iface, listRemovedProjects_args args, org.apache.thrift.async.AsyncMethodCallback<Set<String>> resultHandler) throws TException {
4019 iface.listRemovedProjects(resultHandler);
4020 }
4021 }
4022
4023 public static class createRepository<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, createRepository_args, Void> {
4024 public createRepository() {
4025 super("createRepository");
4026 }
4027
4028 public createRepository_args getEmptyArgsInstance() {
4029 return new createRepository_args();
4030 }
4031
4032 public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
4033 final org.apache.thrift.AsyncProcessFunction fcall = this;
4034 return new AsyncMethodCallback<Void>() {
4035 public void onComplete(Void o) {
4036 createRepository_result result = new createRepository_result();
4037 try {
4038 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
4039 return;
4040 } catch (Exception e) {
4041 LOGGER.error("Exception writing to internal frame buffer", e);
4042 }
4043 fb.close();
4044 }
4045 public void onError(Exception e) {
4046 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
4047 org.apache.thrift.TBase msg;
4048 createRepository_result result = new createRepository_result();
4049 if (e instanceof CentralDogmaException) {
4050 result.e = (CentralDogmaException) e;
4051 result.setEIsSet(true);
4052 msg = result;
4053 }
4054 else
4055 {
4056 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
4057 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
4058 }
4059 try {
4060 fcall.sendResponse(fb,msg,msgType,seqid);
4061 return;
4062 } catch (Exception ex) {
4063 LOGGER.error("Exception writing to internal frame buffer", ex);
4064 }
4065 fb.close();
4066 }
4067 };
4068 }
4069
4070 protected boolean isOneway() {
4071 return false;
4072 }
4073
4074 public void start(I iface, createRepository_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException {
4075 iface.createRepository(args.projectName, args.repositoryName,resultHandler);
4076 }
4077 }
4078
4079 public static class removeRepository<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, removeRepository_args, Void> {
4080 public removeRepository() {
4081 super("removeRepository");
4082 }
4083
4084 public removeRepository_args getEmptyArgsInstance() {
4085 return new removeRepository_args();
4086 }
4087
4088 public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
4089 final org.apache.thrift.AsyncProcessFunction fcall = this;
4090 return new AsyncMethodCallback<Void>() {
4091 public void onComplete(Void o) {
4092 removeRepository_result result = new removeRepository_result();
4093 try {
4094 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
4095 return;
4096 } catch (Exception e) {
4097 LOGGER.error("Exception writing to internal frame buffer", e);
4098 }
4099 fb.close();
4100 }
4101 public void onError(Exception e) {
4102 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
4103 org.apache.thrift.TBase msg;
4104 removeRepository_result result = new removeRepository_result();
4105 if (e instanceof CentralDogmaException) {
4106 result.e = (CentralDogmaException) e;
4107 result.setEIsSet(true);
4108 msg = result;
4109 }
4110 else
4111 {
4112 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
4113 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
4114 }
4115 try {
4116 fcall.sendResponse(fb,msg,msgType,seqid);
4117 return;
4118 } catch (Exception ex) {
4119 LOGGER.error("Exception writing to internal frame buffer", ex);
4120 }
4121 fb.close();
4122 }
4123 };
4124 }
4125
4126 protected boolean isOneway() {
4127 return false;
4128 }
4129
4130 public void start(I iface, removeRepository_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException {
4131 iface.removeRepository(args.projectName, args.repositoryName,resultHandler);
4132 }
4133 }
4134
4135 public static class unremoveRepository<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, unremoveRepository_args, Void> {
4136 public unremoveRepository() {
4137 super("unremoveRepository");
4138 }
4139
4140 public unremoveRepository_args getEmptyArgsInstance() {
4141 return new unremoveRepository_args();
4142 }
4143
4144 public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
4145 final org.apache.thrift.AsyncProcessFunction fcall = this;
4146 return new AsyncMethodCallback<Void>() {
4147 public void onComplete(Void o) {
4148 unremoveRepository_result result = new unremoveRepository_result();
4149 try {
4150 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
4151 return;
4152 } catch (Exception e) {
4153 LOGGER.error("Exception writing to internal frame buffer", e);
4154 }
4155 fb.close();
4156 }
4157 public void onError(Exception e) {
4158 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
4159 org.apache.thrift.TBase msg;
4160 unremoveRepository_result result = new unremoveRepository_result();
4161 if (e instanceof CentralDogmaException) {
4162 result.e = (CentralDogmaException) e;
4163 result.setEIsSet(true);
4164 msg = result;
4165 }
4166 else
4167 {
4168 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
4169 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
4170 }
4171 try {
4172 fcall.sendResponse(fb,msg,msgType,seqid);
4173 return;
4174 } catch (Exception ex) {
4175 LOGGER.error("Exception writing to internal frame buffer", ex);
4176 }
4177 fb.close();
4178 }
4179 };
4180 }
4181
4182 protected boolean isOneway() {
4183 return false;
4184 }
4185
4186 public void start(I iface, unremoveRepository_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException {
4187 iface.unremoveRepository(args.projectName, args.repositoryName,resultHandler);
4188 }
4189 }
4190
4191 public static class listRepositories<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, listRepositories_args, List<Repository>> {
4192 public listRepositories() {
4193 super("listRepositories");
4194 }
4195
4196 public listRepositories_args getEmptyArgsInstance() {
4197 return new listRepositories_args();
4198 }
4199
4200 public AsyncMethodCallback<List<Repository>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
4201 final org.apache.thrift.AsyncProcessFunction fcall = this;
4202 return new AsyncMethodCallback<List<Repository>>() {
4203 public void onComplete(List<Repository> o) {
4204 listRepositories_result result = new listRepositories_result();
4205 result.success = o;
4206 try {
4207 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
4208 return;
4209 } catch (Exception e) {
4210 LOGGER.error("Exception writing to internal frame buffer", e);
4211 }
4212 fb.close();
4213 }
4214 public void onError(Exception e) {
4215 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
4216 org.apache.thrift.TBase msg;
4217 listRepositories_result result = new listRepositories_result();
4218 if (e instanceof CentralDogmaException) {
4219 result.e = (CentralDogmaException) e;
4220 result.setEIsSet(true);
4221 msg = result;
4222 }
4223 else
4224 {
4225 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
4226 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
4227 }
4228 try {
4229 fcall.sendResponse(fb,msg,msgType,seqid);
4230 return;
4231 } catch (Exception ex) {
4232 LOGGER.error("Exception writing to internal frame buffer", ex);
4233 }
4234 fb.close();
4235 }
4236 };
4237 }
4238
4239 protected boolean isOneway() {
4240 return false;
4241 }
4242
4243 public void start(I iface, listRepositories_args args, org.apache.thrift.async.AsyncMethodCallback<List<Repository>> resultHandler) throws TException {
4244 iface.listRepositories(args.projectName,resultHandler);
4245 }
4246 }
4247
4248 public static class listRemovedRepositories<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, listRemovedRepositories_args, Set<String>> {
4249 public listRemovedRepositories() {
4250 super("listRemovedRepositories");
4251 }
4252
4253 public listRemovedRepositories_args getEmptyArgsInstance() {
4254 return new listRemovedRepositories_args();
4255 }
4256
4257 public AsyncMethodCallback<Set<String>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
4258 final org.apache.thrift.AsyncProcessFunction fcall = this;
4259 return new AsyncMethodCallback<Set<String>>() {
4260 public void onComplete(Set<String> o) {
4261 listRemovedRepositories_result result = new listRemovedRepositories_result();
4262 result.success = o;
4263 try {
4264 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
4265 return;
4266 } catch (Exception e) {
4267 LOGGER.error("Exception writing to internal frame buffer", e);
4268 }
4269 fb.close();
4270 }
4271 public void onError(Exception e) {
4272 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
4273 org.apache.thrift.TBase msg;
4274 listRemovedRepositories_result result = new listRemovedRepositories_result();
4275 if (e instanceof CentralDogmaException) {
4276 result.e = (CentralDogmaException) e;
4277 result.setEIsSet(true);
4278 msg = result;
4279 }
4280 else
4281 {
4282 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
4283 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
4284 }
4285 try {
4286 fcall.sendResponse(fb,msg,msgType,seqid);
4287 return;
4288 } catch (Exception ex) {
4289 LOGGER.error("Exception writing to internal frame buffer", ex);
4290 }
4291 fb.close();
4292 }
4293 };
4294 }
4295
4296 protected boolean isOneway() {
4297 return false;
4298 }
4299
4300 public void start(I iface, listRemovedRepositories_args args, org.apache.thrift.async.AsyncMethodCallback<Set<String>> resultHandler) throws TException {
4301 iface.listRemovedRepositories(args.projectName,resultHandler);
4302 }
4303 }
4304
4305 public static class normalizeRevision<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, normalizeRevision_args, Revision> {
4306 public normalizeRevision() {
4307 super("normalizeRevision");
4308 }
4309
4310 public normalizeRevision_args getEmptyArgsInstance() {
4311 return new normalizeRevision_args();
4312 }
4313
4314 public AsyncMethodCallback<Revision> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
4315 final org.apache.thrift.AsyncProcessFunction fcall = this;
4316 return new AsyncMethodCallback<Revision>() {
4317 public void onComplete(Revision o) {
4318 normalizeRevision_result result = new normalizeRevision_result();
4319 result.success = o;
4320 try {
4321 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
4322 return;
4323 } catch (Exception e) {
4324 LOGGER.error("Exception writing to internal frame buffer", e);
4325 }
4326 fb.close();
4327 }
4328 public void onError(Exception e) {
4329 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
4330 org.apache.thrift.TBase msg;
4331 normalizeRevision_result result = new normalizeRevision_result();
4332 if (e instanceof CentralDogmaException) {
4333 result.e = (CentralDogmaException) e;
4334 result.setEIsSet(true);
4335 msg = result;
4336 }
4337 else
4338 {
4339 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
4340 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
4341 }
4342 try {
4343 fcall.sendResponse(fb,msg,msgType,seqid);
4344 return;
4345 } catch (Exception ex) {
4346 LOGGER.error("Exception writing to internal frame buffer", ex);
4347 }
4348 fb.close();
4349 }
4350 };
4351 }
4352
4353 protected boolean isOneway() {
4354 return false;
4355 }
4356
4357 public void start(I iface, normalizeRevision_args args, org.apache.thrift.async.AsyncMethodCallback<Revision> resultHandler) throws TException {
4358 iface.normalizeRevision(args.projectName, args.repositoryName, args.revision,resultHandler);
4359 }
4360 }
4361
4362 public static class listFiles<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, listFiles_args, List<Entry>> {
4363 public listFiles() {
4364 super("listFiles");
4365 }
4366
4367 public listFiles_args getEmptyArgsInstance() {
4368 return new listFiles_args();
4369 }
4370
4371 public AsyncMethodCallback<List<Entry>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
4372 final org.apache.thrift.AsyncProcessFunction fcall = this;
4373 return new AsyncMethodCallback<List<Entry>>() {
4374 public void onComplete(List<Entry> o) {
4375 listFiles_result result = new listFiles_result();
4376 result.success = o;
4377 try {
4378 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
4379 return;
4380 } catch (Exception e) {
4381 LOGGER.error("Exception writing to internal frame buffer", e);
4382 }
4383 fb.close();
4384 }
4385 public void onError(Exception e) {
4386 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
4387 org.apache.thrift.TBase msg;
4388 listFiles_result result = new listFiles_result();
4389 if (e instanceof CentralDogmaException) {
4390 result.e = (CentralDogmaException) e;
4391 result.setEIsSet(true);
4392 msg = result;
4393 }
4394 else
4395 {
4396 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
4397 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
4398 }
4399 try {
4400 fcall.sendResponse(fb,msg,msgType,seqid);
4401 return;
4402 } catch (Exception ex) {
4403 LOGGER.error("Exception writing to internal frame buffer", ex);
4404 }
4405 fb.close();
4406 }
4407 };
4408 }
4409
4410 protected boolean isOneway() {
4411 return false;
4412 }
4413
4414 public void start(I iface, listFiles_args args, org.apache.thrift.async.AsyncMethodCallback<List<Entry>> resultHandler) throws TException {
4415 iface.listFiles(args.projectName, args.repositoryName, args.revision, args.pathPattern,resultHandler);
4416 }
4417 }
4418
4419 public static class getFiles<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getFiles_args, List<Entry>> {
4420 public getFiles() {
4421 super("getFiles");
4422 }
4423
4424 public getFiles_args getEmptyArgsInstance() {
4425 return new getFiles_args();
4426 }
4427
4428 public AsyncMethodCallback<List<Entry>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
4429 final org.apache.thrift.AsyncProcessFunction fcall = this;
4430 return new AsyncMethodCallback<List<Entry>>() {
4431 public void onComplete(List<Entry> o) {
4432 getFiles_result result = new getFiles_result();
4433 result.success = o;
4434 try {
4435 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
4436 return;
4437 } catch (Exception e) {
4438 LOGGER.error("Exception writing to internal frame buffer", e);
4439 }
4440 fb.close();
4441 }
4442 public void onError(Exception e) {
4443 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
4444 org.apache.thrift.TBase msg;
4445 getFiles_result result = new getFiles_result();
4446 if (e instanceof CentralDogmaException) {
4447 result.e = (CentralDogmaException) e;
4448 result.setEIsSet(true);
4449 msg = result;
4450 }
4451 else
4452 {
4453 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
4454 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
4455 }
4456 try {
4457 fcall.sendResponse(fb,msg,msgType,seqid);
4458 return;
4459 } catch (Exception ex) {
4460 LOGGER.error("Exception writing to internal frame buffer", ex);
4461 }
4462 fb.close();
4463 }
4464 };
4465 }
4466
4467 protected boolean isOneway() {
4468 return false;
4469 }
4470
4471 public void start(I iface, getFiles_args args, org.apache.thrift.async.AsyncMethodCallback<List<Entry>> resultHandler) throws TException {
4472 iface.getFiles(args.projectName, args.repositoryName, args.revision, args.pathPattern,resultHandler);
4473 }
4474 }
4475
4476 public static class getHistory<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getHistory_args, List<Commit>> {
4477 public getHistory() {
4478 super("getHistory");
4479 }
4480
4481 public getHistory_args getEmptyArgsInstance() {
4482 return new getHistory_args();
4483 }
4484
4485 public AsyncMethodCallback<List<Commit>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
4486 final org.apache.thrift.AsyncProcessFunction fcall = this;
4487 return new AsyncMethodCallback<List<Commit>>() {
4488 public void onComplete(List<Commit> o) {
4489 getHistory_result result = new getHistory_result();
4490 result.success = o;
4491 try {
4492 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
4493 return;
4494 } catch (Exception e) {
4495 LOGGER.error("Exception writing to internal frame buffer", e);
4496 }
4497 fb.close();
4498 }
4499 public void onError(Exception e) {
4500 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
4501 org.apache.thrift.TBase msg;
4502 getHistory_result result = new getHistory_result();
4503 if (e instanceof CentralDogmaException) {
4504 result.e = (CentralDogmaException) e;
4505 result.setEIsSet(true);
4506 msg = result;
4507 }
4508 else
4509 {
4510 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
4511 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
4512 }
4513 try {
4514 fcall.sendResponse(fb,msg,msgType,seqid);
4515 return;
4516 } catch (Exception ex) {
4517 LOGGER.error("Exception writing to internal frame buffer", ex);
4518 }
4519 fb.close();
4520 }
4521 };
4522 }
4523
4524 protected boolean isOneway() {
4525 return false;
4526 }
4527
4528 public void start(I iface, getHistory_args args, org.apache.thrift.async.AsyncMethodCallback<List<Commit>> resultHandler) throws TException {
4529 iface.getHistory(args.projectName, args.repositoryName, args.from, args.to, args.pathPattern,resultHandler);
4530 }
4531 }
4532
4533 public static class getDiffs<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getDiffs_args, List<Change>> {
4534 public getDiffs() {
4535 super("getDiffs");
4536 }
4537
4538 public getDiffs_args getEmptyArgsInstance() {
4539 return new getDiffs_args();
4540 }
4541
4542 public AsyncMethodCallback<List<Change>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
4543 final org.apache.thrift.AsyncProcessFunction fcall = this;
4544 return new AsyncMethodCallback<List<Change>>() {
4545 public void onComplete(List<Change> o) {
4546 getDiffs_result result = new getDiffs_result();
4547 result.success = o;
4548 try {
4549 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
4550 return;
4551 } catch (Exception e) {
4552 LOGGER.error("Exception writing to internal frame buffer", e);
4553 }
4554 fb.close();
4555 }
4556 public void onError(Exception e) {
4557 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
4558 org.apache.thrift.TBase msg;
4559 getDiffs_result result = new getDiffs_result();
4560 if (e instanceof CentralDogmaException) {
4561 result.e = (CentralDogmaException) e;
4562 result.setEIsSet(true);
4563 msg = result;
4564 }
4565 else
4566 {
4567 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
4568 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
4569 }
4570 try {
4571 fcall.sendResponse(fb,msg,msgType,seqid);
4572 return;
4573 } catch (Exception ex) {
4574 LOGGER.error("Exception writing to internal frame buffer", ex);
4575 }
4576 fb.close();
4577 }
4578 };
4579 }
4580
4581 protected boolean isOneway() {
4582 return false;
4583 }
4584
4585 public void start(I iface, getDiffs_args args, org.apache.thrift.async.AsyncMethodCallback<List<Change>> resultHandler) throws TException {
4586 iface.getDiffs(args.projectName, args.repositoryName, args.from, args.to, args.pathPattern,resultHandler);
4587 }
4588 }
4589
4590 public static class getPreviewDiffs<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getPreviewDiffs_args, List<Change>> {
4591 public getPreviewDiffs() {
4592 super("getPreviewDiffs");
4593 }
4594
4595 public getPreviewDiffs_args getEmptyArgsInstance() {
4596 return new getPreviewDiffs_args();
4597 }
4598
4599 public AsyncMethodCallback<List<Change>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
4600 final org.apache.thrift.AsyncProcessFunction fcall = this;
4601 return new AsyncMethodCallback<List<Change>>() {
4602 public void onComplete(List<Change> o) {
4603 getPreviewDiffs_result result = new getPreviewDiffs_result();
4604 result.success = o;
4605 try {
4606 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
4607 return;
4608 } catch (Exception e) {
4609 LOGGER.error("Exception writing to internal frame buffer", e);
4610 }
4611 fb.close();
4612 }
4613 public void onError(Exception e) {
4614 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
4615 org.apache.thrift.TBase msg;
4616 getPreviewDiffs_result result = new getPreviewDiffs_result();
4617 if (e instanceof CentralDogmaException) {
4618 result.e = (CentralDogmaException) e;
4619 result.setEIsSet(true);
4620 msg = result;
4621 }
4622 else
4623 {
4624 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
4625 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
4626 }
4627 try {
4628 fcall.sendResponse(fb,msg,msgType,seqid);
4629 return;
4630 } catch (Exception ex) {
4631 LOGGER.error("Exception writing to internal frame buffer", ex);
4632 }
4633 fb.close();
4634 }
4635 };
4636 }
4637
4638 protected boolean isOneway() {
4639 return false;
4640 }
4641
4642 public void start(I iface, getPreviewDiffs_args args, org.apache.thrift.async.AsyncMethodCallback<List<Change>> resultHandler) throws TException {
4643 iface.getPreviewDiffs(args.projectName, args.repositoryName, args.baseRevision, args.changes,resultHandler);
4644 }
4645 }
4646
4647 public static class push<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, push_args, Commit> {
4648 public push() {
4649 super("push");
4650 }
4651
4652 public push_args getEmptyArgsInstance() {
4653 return new push_args();
4654 }
4655
4656 public AsyncMethodCallback<Commit> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
4657 final org.apache.thrift.AsyncProcessFunction fcall = this;
4658 return new AsyncMethodCallback<Commit>() {
4659 public void onComplete(Commit o) {
4660 push_result result = new push_result();
4661 result.success = o;
4662 try {
4663 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
4664 return;
4665 } catch (Exception e) {
4666 LOGGER.error("Exception writing to internal frame buffer", e);
4667 }
4668 fb.close();
4669 }
4670 public void onError(Exception e) {
4671 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
4672 org.apache.thrift.TBase msg;
4673 push_result result = new push_result();
4674 if (e instanceof CentralDogmaException) {
4675 result.e = (CentralDogmaException) e;
4676 result.setEIsSet(true);
4677 msg = result;
4678 }
4679 else
4680 {
4681 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
4682 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
4683 }
4684 try {
4685 fcall.sendResponse(fb,msg,msgType,seqid);
4686 return;
4687 } catch (Exception ex) {
4688 LOGGER.error("Exception writing to internal frame buffer", ex);
4689 }
4690 fb.close();
4691 }
4692 };
4693 }
4694
4695 protected boolean isOneway() {
4696 return false;
4697 }
4698
4699 public void start(I iface, push_args args, org.apache.thrift.async.AsyncMethodCallback<Commit> resultHandler) throws TException {
4700 iface.push(args.projectName, args.repositoryName, args.baseRevision, args.author, args.summary, args.detail, args.changes,resultHandler);
4701 }
4702 }
4703
4704 public static class getFile<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getFile_args, GetFileResult> {
4705 public getFile() {
4706 super("getFile");
4707 }
4708
4709 public getFile_args getEmptyArgsInstance() {
4710 return new getFile_args();
4711 }
4712
4713 public AsyncMethodCallback<GetFileResult> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
4714 final org.apache.thrift.AsyncProcessFunction fcall = this;
4715 return new AsyncMethodCallback<GetFileResult>() {
4716 public void onComplete(GetFileResult o) {
4717 getFile_result result = new getFile_result();
4718 result.success = o;
4719 try {
4720 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
4721 return;
4722 } catch (Exception e) {
4723 LOGGER.error("Exception writing to internal frame buffer", e);
4724 }
4725 fb.close();
4726 }
4727 public void onError(Exception e) {
4728 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
4729 org.apache.thrift.TBase msg;
4730 getFile_result result = new getFile_result();
4731 if (e instanceof CentralDogmaException) {
4732 result.e = (CentralDogmaException) e;
4733 result.setEIsSet(true);
4734 msg = result;
4735 }
4736 else
4737 {
4738 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
4739 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
4740 }
4741 try {
4742 fcall.sendResponse(fb,msg,msgType,seqid);
4743 return;
4744 } catch (Exception ex) {
4745 LOGGER.error("Exception writing to internal frame buffer", ex);
4746 }
4747 fb.close();
4748 }
4749 };
4750 }
4751
4752 protected boolean isOneway() {
4753 return false;
4754 }
4755
4756 public void start(I iface, getFile_args args, org.apache.thrift.async.AsyncMethodCallback<GetFileResult> resultHandler) throws TException {
4757 iface.getFile(args.projectName, args.repositoryName, args.revision, args.query,resultHandler);
4758 }
4759 }
4760
4761 public static class diffFile<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, diffFile_args, DiffFileResult> {
4762 public diffFile() {
4763 super("diffFile");
4764 }
4765
4766 public diffFile_args getEmptyArgsInstance() {
4767 return new diffFile_args();
4768 }
4769
4770 public AsyncMethodCallback<DiffFileResult> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
4771 final org.apache.thrift.AsyncProcessFunction fcall = this;
4772 return new AsyncMethodCallback<DiffFileResult>() {
4773 public void onComplete(DiffFileResult o) {
4774 diffFile_result result = new diffFile_result();
4775 result.success = o;
4776 try {
4777 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
4778 return;
4779 } catch (Exception e) {
4780 LOGGER.error("Exception writing to internal frame buffer", e);
4781 }
4782 fb.close();
4783 }
4784 public void onError(Exception e) {
4785 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
4786 org.apache.thrift.TBase msg;
4787 diffFile_result result = new diffFile_result();
4788 if (e instanceof CentralDogmaException) {
4789 result.e = (CentralDogmaException) e;
4790 result.setEIsSet(true);
4791 msg = result;
4792 }
4793 else
4794 {
4795 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
4796 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
4797 }
4798 try {
4799 fcall.sendResponse(fb,msg,msgType,seqid);
4800 return;
4801 } catch (Exception ex) {
4802 LOGGER.error("Exception writing to internal frame buffer", ex);
4803 }
4804 fb.close();
4805 }
4806 };
4807 }
4808
4809 protected boolean isOneway() {
4810 return false;
4811 }
4812
4813 public void start(I iface, diffFile_args args, org.apache.thrift.async.AsyncMethodCallback<DiffFileResult> resultHandler) throws TException {
4814 iface.diffFile(args.projectName, args.repositoryName, args.from, args.to, args.query,resultHandler);
4815 }
4816 }
4817
4818 public static class mergeFiles<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, mergeFiles_args, MergedEntry> {
4819 public mergeFiles() {
4820 super("mergeFiles");
4821 }
4822
4823 public mergeFiles_args getEmptyArgsInstance() {
4824 return new mergeFiles_args();
4825 }
4826
4827 public AsyncMethodCallback<MergedEntry> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
4828 final org.apache.thrift.AsyncProcessFunction fcall = this;
4829 return new AsyncMethodCallback<MergedEntry>() {
4830 public void onComplete(MergedEntry o) {
4831 mergeFiles_result result = new mergeFiles_result();
4832 result.success = o;
4833 try {
4834 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
4835 return;
4836 } catch (Exception e) {
4837 LOGGER.error("Exception writing to internal frame buffer", e);
4838 }
4839 fb.close();
4840 }
4841 public void onError(Exception e) {
4842 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
4843 org.apache.thrift.TBase msg;
4844 mergeFiles_result result = new mergeFiles_result();
4845 if (e instanceof CentralDogmaException) {
4846 result.e = (CentralDogmaException) e;
4847 result.setEIsSet(true);
4848 msg = result;
4849 }
4850 else
4851 {
4852 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
4853 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
4854 }
4855 try {
4856 fcall.sendResponse(fb,msg,msgType,seqid);
4857 return;
4858 } catch (Exception ex) {
4859 LOGGER.error("Exception writing to internal frame buffer", ex);
4860 }
4861 fb.close();
4862 }
4863 };
4864 }
4865
4866 protected boolean isOneway() {
4867 return false;
4868 }
4869
4870 public void start(I iface, mergeFiles_args args, org.apache.thrift.async.AsyncMethodCallback<MergedEntry> resultHandler) throws TException {
4871 iface.mergeFiles(args.projectName, args.repositoryName, args.revision, args.mergeQuery,resultHandler);
4872 }
4873 }
4874
4875 public static class watchRepository<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, watchRepository_args, WatchRepositoryResult> {
4876 public watchRepository() {
4877 super("watchRepository");
4878 }
4879
4880 public watchRepository_args getEmptyArgsInstance() {
4881 return new watchRepository_args();
4882 }
4883
4884 public AsyncMethodCallback<WatchRepositoryResult> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
4885 final org.apache.thrift.AsyncProcessFunction fcall = this;
4886 return new AsyncMethodCallback<WatchRepositoryResult>() {
4887 public void onComplete(WatchRepositoryResult o) {
4888 watchRepository_result result = new watchRepository_result();
4889 result.success = o;
4890 try {
4891 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
4892 return;
4893 } catch (Exception e) {
4894 LOGGER.error("Exception writing to internal frame buffer", e);
4895 }
4896 fb.close();
4897 }
4898 public void onError(Exception e) {
4899 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
4900 org.apache.thrift.TBase msg;
4901 watchRepository_result result = new watchRepository_result();
4902 if (e instanceof CentralDogmaException) {
4903 result.e = (CentralDogmaException) e;
4904 result.setEIsSet(true);
4905 msg = result;
4906 }
4907 else
4908 {
4909 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
4910 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
4911 }
4912 try {
4913 fcall.sendResponse(fb,msg,msgType,seqid);
4914 return;
4915 } catch (Exception ex) {
4916 LOGGER.error("Exception writing to internal frame buffer", ex);
4917 }
4918 fb.close();
4919 }
4920 };
4921 }
4922
4923 protected boolean isOneway() {
4924 return false;
4925 }
4926
4927 public void start(I iface, watchRepository_args args, org.apache.thrift.async.AsyncMethodCallback<WatchRepositoryResult> resultHandler) throws TException {
4928 iface.watchRepository(args.projectName, args.repositoryName, args.lastKnownRevision, args.pathPattern, args.timeoutMillis,resultHandler);
4929 }
4930 }
4931
4932 public static class watchFile<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, watchFile_args, WatchFileResult> {
4933 public watchFile() {
4934 super("watchFile");
4935 }
4936
4937 public watchFile_args getEmptyArgsInstance() {
4938 return new watchFile_args();
4939 }
4940
4941 public AsyncMethodCallback<WatchFileResult> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
4942 final org.apache.thrift.AsyncProcessFunction fcall = this;
4943 return new AsyncMethodCallback<WatchFileResult>() {
4944 public void onComplete(WatchFileResult o) {
4945 watchFile_result result = new watchFile_result();
4946 result.success = o;
4947 try {
4948 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
4949 return;
4950 } catch (Exception e) {
4951 LOGGER.error("Exception writing to internal frame buffer", e);
4952 }
4953 fb.close();
4954 }
4955 public void onError(Exception e) {
4956 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
4957 org.apache.thrift.TBase msg;
4958 watchFile_result result = new watchFile_result();
4959 if (e instanceof CentralDogmaException) {
4960 result.e = (CentralDogmaException) e;
4961 result.setEIsSet(true);
4962 msg = result;
4963 }
4964 else
4965 {
4966 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
4967 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
4968 }
4969 try {
4970 fcall.sendResponse(fb,msg,msgType,seqid);
4971 return;
4972 } catch (Exception ex) {
4973 LOGGER.error("Exception writing to internal frame buffer", ex);
4974 }
4975 fb.close();
4976 }
4977 };
4978 }
4979
4980 protected boolean isOneway() {
4981 return false;
4982 }
4983
4984 public void start(I iface, watchFile_args args, org.apache.thrift.async.AsyncMethodCallback<WatchFileResult> resultHandler) throws TException {
4985 iface.watchFile(args.projectName, args.repositoryName, args.lastKnownRevision, args.query, args.timeoutMillis,resultHandler);
4986 }
4987 }
4988
4989 public static class getSchema<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getSchema_args, Schema> {
4990 public getSchema() {
4991 super("getSchema");
4992 }
4993
4994 public getSchema_args getEmptyArgsInstance() {
4995 return new getSchema_args();
4996 }
4997
4998 public AsyncMethodCallback<Schema> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
4999 final org.apache.thrift.AsyncProcessFunction fcall = this;
5000 return new AsyncMethodCallback<Schema>() {
5001 public void onComplete(Schema o) {
5002 getSchema_result result = new getSchema_result();
5003 result.success = o;
5004 try {
5005 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
5006 return;
5007 } catch (Exception e) {
5008 LOGGER.error("Exception writing to internal frame buffer", e);
5009 }
5010 fb.close();
5011 }
5012 public void onError(Exception e) {
5013 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
5014 org.apache.thrift.TBase msg;
5015 getSchema_result result = new getSchema_result();
5016 if (e instanceof CentralDogmaException) {
5017 result.e = (CentralDogmaException) e;
5018 result.setEIsSet(true);
5019 msg = result;
5020 }
5021 else
5022 {
5023 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
5024 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
5025 }
5026 try {
5027 fcall.sendResponse(fb,msg,msgType,seqid);
5028 return;
5029 } catch (Exception ex) {
5030 LOGGER.error("Exception writing to internal frame buffer", ex);
5031 }
5032 fb.close();
5033 }
5034 };
5035 }
5036
5037 protected boolean isOneway() {
5038 return false;
5039 }
5040
5041 public void start(I iface, getSchema_args args, org.apache.thrift.async.AsyncMethodCallback<Schema> resultHandler) throws TException {
5042 iface.getSchema(args.projectName,resultHandler);
5043 }
5044 }
5045
5046 public static class saveSchema<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, saveSchema_args, Void> {
5047 public saveSchema() {
5048 super("saveSchema");
5049 }
5050
5051 public saveSchema_args getEmptyArgsInstance() {
5052 return new saveSchema_args();
5053 }
5054
5055 public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
5056 final org.apache.thrift.AsyncProcessFunction fcall = this;
5057 return new AsyncMethodCallback<Void>() {
5058 public void onComplete(Void o) {
5059 saveSchema_result result = new saveSchema_result();
5060 try {
5061 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
5062 return;
5063 } catch (Exception e) {
5064 LOGGER.error("Exception writing to internal frame buffer", e);
5065 }
5066 fb.close();
5067 }
5068 public void onError(Exception e) {
5069 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
5070 org.apache.thrift.TBase msg;
5071 saveSchema_result result = new saveSchema_result();
5072 if (e instanceof CentralDogmaException) {
5073 result.e = (CentralDogmaException) e;
5074 result.setEIsSet(true);
5075 msg = result;
5076 }
5077 else
5078 {
5079 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
5080 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
5081 }
5082 try {
5083 fcall.sendResponse(fb,msg,msgType,seqid);
5084 return;
5085 } catch (Exception ex) {
5086 LOGGER.error("Exception writing to internal frame buffer", ex);
5087 }
5088 fb.close();
5089 }
5090 };
5091 }
5092
5093 protected boolean isOneway() {
5094 return false;
5095 }
5096
5097 public void start(I iface, saveSchema_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException {
5098 iface.saveSchema(args.projectName, args.schema,resultHandler);
5099 }
5100 }
5101
5102 public static class getNamedQuery<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getNamedQuery_args, NamedQuery> {
5103 public getNamedQuery() {
5104 super("getNamedQuery");
5105 }
5106
5107 public getNamedQuery_args getEmptyArgsInstance() {
5108 return new getNamedQuery_args();
5109 }
5110
5111 public AsyncMethodCallback<NamedQuery> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
5112 final org.apache.thrift.AsyncProcessFunction fcall = this;
5113 return new AsyncMethodCallback<NamedQuery>() {
5114 public void onComplete(NamedQuery o) {
5115 getNamedQuery_result result = new getNamedQuery_result();
5116 result.success = o;
5117 try {
5118 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
5119 return;
5120 } catch (Exception e) {
5121 LOGGER.error("Exception writing to internal frame buffer", e);
5122 }
5123 fb.close();
5124 }
5125 public void onError(Exception e) {
5126 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
5127 org.apache.thrift.TBase msg;
5128 getNamedQuery_result result = new getNamedQuery_result();
5129 if (e instanceof CentralDogmaException) {
5130 result.e = (CentralDogmaException) e;
5131 result.setEIsSet(true);
5132 msg = result;
5133 }
5134 else
5135 {
5136 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
5137 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
5138 }
5139 try {
5140 fcall.sendResponse(fb,msg,msgType,seqid);
5141 return;
5142 } catch (Exception ex) {
5143 LOGGER.error("Exception writing to internal frame buffer", ex);
5144 }
5145 fb.close();
5146 }
5147 };
5148 }
5149
5150 protected boolean isOneway() {
5151 return false;
5152 }
5153
5154 public void start(I iface, getNamedQuery_args args, org.apache.thrift.async.AsyncMethodCallback<NamedQuery> resultHandler) throws TException {
5155 iface.getNamedQuery(args.projectName, args.name,resultHandler);
5156 }
5157 }
5158
5159 public static class saveNamedQuery<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, saveNamedQuery_args, Void> {
5160 public saveNamedQuery() {
5161 super("saveNamedQuery");
5162 }
5163
5164 public saveNamedQuery_args getEmptyArgsInstance() {
5165 return new saveNamedQuery_args();
5166 }
5167
5168 public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
5169 final org.apache.thrift.AsyncProcessFunction fcall = this;
5170 return new AsyncMethodCallback<Void>() {
5171 public void onComplete(Void o) {
5172 saveNamedQuery_result result = new saveNamedQuery_result();
5173 try {
5174 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
5175 return;
5176 } catch (Exception e) {
5177 LOGGER.error("Exception writing to internal frame buffer", e);
5178 }
5179 fb.close();
5180 }
5181 public void onError(Exception e) {
5182 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
5183 org.apache.thrift.TBase msg;
5184 saveNamedQuery_result result = new saveNamedQuery_result();
5185 if (e instanceof CentralDogmaException) {
5186 result.e = (CentralDogmaException) e;
5187 result.setEIsSet(true);
5188 msg = result;
5189 }
5190 else
5191 {
5192 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
5193 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
5194 }
5195 try {
5196 fcall.sendResponse(fb,msg,msgType,seqid);
5197 return;
5198 } catch (Exception ex) {
5199 LOGGER.error("Exception writing to internal frame buffer", ex);
5200 }
5201 fb.close();
5202 }
5203 };
5204 }
5205
5206 protected boolean isOneway() {
5207 return false;
5208 }
5209
5210 public void start(I iface, saveNamedQuery_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException {
5211 iface.saveNamedQuery(args.projectName, args.namedQuery,resultHandler);
5212 }
5213 }
5214
5215 public static class removeNamedQuery<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, removeNamedQuery_args, Void> {
5216 public removeNamedQuery() {
5217 super("removeNamedQuery");
5218 }
5219
5220 public removeNamedQuery_args getEmptyArgsInstance() {
5221 return new removeNamedQuery_args();
5222 }
5223
5224 public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
5225 final org.apache.thrift.AsyncProcessFunction fcall = this;
5226 return new AsyncMethodCallback<Void>() {
5227 public void onComplete(Void o) {
5228 removeNamedQuery_result result = new removeNamedQuery_result();
5229 try {
5230 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
5231 return;
5232 } catch (Exception e) {
5233 LOGGER.error("Exception writing to internal frame buffer", e);
5234 }
5235 fb.close();
5236 }
5237 public void onError(Exception e) {
5238 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
5239 org.apache.thrift.TBase msg;
5240 removeNamedQuery_result result = new removeNamedQuery_result();
5241 if (e instanceof CentralDogmaException) {
5242 result.e = (CentralDogmaException) e;
5243 result.setEIsSet(true);
5244 msg = result;
5245 }
5246 else
5247 {
5248 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
5249 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
5250 }
5251 try {
5252 fcall.sendResponse(fb,msg,msgType,seqid);
5253 return;
5254 } catch (Exception ex) {
5255 LOGGER.error("Exception writing to internal frame buffer", ex);
5256 }
5257 fb.close();
5258 }
5259 };
5260 }
5261
5262 protected boolean isOneway() {
5263 return false;
5264 }
5265
5266 public void start(I iface, removeNamedQuery_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException {
5267 iface.removeNamedQuery(args.projectName, args.name,resultHandler);
5268 }
5269 }
5270
5271 public static class listNamedQueries<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, listNamedQueries_args, List<NamedQuery>> {
5272 public listNamedQueries() {
5273 super("listNamedQueries");
5274 }
5275
5276 public listNamedQueries_args getEmptyArgsInstance() {
5277 return new listNamedQueries_args();
5278 }
5279
5280 public AsyncMethodCallback<List<NamedQuery>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
5281 final org.apache.thrift.AsyncProcessFunction fcall = this;
5282 return new AsyncMethodCallback<List<NamedQuery>>() {
5283 public void onComplete(List<NamedQuery> o) {
5284 listNamedQueries_result result = new listNamedQueries_result();
5285 result.success = o;
5286 try {
5287 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
5288 return;
5289 } catch (Exception e) {
5290 LOGGER.error("Exception writing to internal frame buffer", e);
5291 }
5292 fb.close();
5293 }
5294 public void onError(Exception e) {
5295 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
5296 org.apache.thrift.TBase msg;
5297 listNamedQueries_result result = new listNamedQueries_result();
5298 if (e instanceof CentralDogmaException) {
5299 result.e = (CentralDogmaException) e;
5300 result.setEIsSet(true);
5301 msg = result;
5302 }
5303 else
5304 {
5305 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
5306 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
5307 }
5308 try {
5309 fcall.sendResponse(fb,msg,msgType,seqid);
5310 return;
5311 } catch (Exception ex) {
5312 LOGGER.error("Exception writing to internal frame buffer", ex);
5313 }
5314 fb.close();
5315 }
5316 };
5317 }
5318
5319 protected boolean isOneway() {
5320 return false;
5321 }
5322
5323 public void start(I iface, listNamedQueries_args args, org.apache.thrift.async.AsyncMethodCallback<List<NamedQuery>> resultHandler) throws TException {
5324 iface.listNamedQueries(args.projectName,resultHandler);
5325 }
5326 }
5327
5328 public static class getPlugin<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getPlugin_args, Plugin> {
5329 public getPlugin() {
5330 super("getPlugin");
5331 }
5332
5333 public getPlugin_args getEmptyArgsInstance() {
5334 return new getPlugin_args();
5335 }
5336
5337 public AsyncMethodCallback<Plugin> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
5338 final org.apache.thrift.AsyncProcessFunction fcall = this;
5339 return new AsyncMethodCallback<Plugin>() {
5340 public void onComplete(Plugin o) {
5341 getPlugin_result result = new getPlugin_result();
5342 result.success = o;
5343 try {
5344 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
5345 return;
5346 } catch (Exception e) {
5347 LOGGER.error("Exception writing to internal frame buffer", e);
5348 }
5349 fb.close();
5350 }
5351 public void onError(Exception e) {
5352 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
5353 org.apache.thrift.TBase msg;
5354 getPlugin_result result = new getPlugin_result();
5355 if (e instanceof CentralDogmaException) {
5356 result.e = (CentralDogmaException) e;
5357 result.setEIsSet(true);
5358 msg = result;
5359 }
5360 else
5361 {
5362 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
5363 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
5364 }
5365 try {
5366 fcall.sendResponse(fb,msg,msgType,seqid);
5367 return;
5368 } catch (Exception ex) {
5369 LOGGER.error("Exception writing to internal frame buffer", ex);
5370 }
5371 fb.close();
5372 }
5373 };
5374 }
5375
5376 protected boolean isOneway() {
5377 return false;
5378 }
5379
5380 public void start(I iface, getPlugin_args args, org.apache.thrift.async.AsyncMethodCallback<Plugin> resultHandler) throws TException {
5381 iface.getPlugin(args.projectName, args.pluginName,resultHandler);
5382 }
5383 }
5384
5385 public static class savePlugin<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, savePlugin_args, Void> {
5386 public savePlugin() {
5387 super("savePlugin");
5388 }
5389
5390 public savePlugin_args getEmptyArgsInstance() {
5391 return new savePlugin_args();
5392 }
5393
5394 public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
5395 final org.apache.thrift.AsyncProcessFunction fcall = this;
5396 return new AsyncMethodCallback<Void>() {
5397 public void onComplete(Void o) {
5398 savePlugin_result result = new savePlugin_result();
5399 try {
5400 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
5401 return;
5402 } catch (Exception e) {
5403 LOGGER.error("Exception writing to internal frame buffer", e);
5404 }
5405 fb.close();
5406 }
5407 public void onError(Exception e) {
5408 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
5409 org.apache.thrift.TBase msg;
5410 savePlugin_result result = new savePlugin_result();
5411 if (e instanceof CentralDogmaException) {
5412 result.e = (CentralDogmaException) e;
5413 result.setEIsSet(true);
5414 msg = result;
5415 }
5416 else
5417 {
5418 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
5419 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
5420 }
5421 try {
5422 fcall.sendResponse(fb,msg,msgType,seqid);
5423 return;
5424 } catch (Exception ex) {
5425 LOGGER.error("Exception writing to internal frame buffer", ex);
5426 }
5427 fb.close();
5428 }
5429 };
5430 }
5431
5432 protected boolean isOneway() {
5433 return false;
5434 }
5435
5436 public void start(I iface, savePlugin_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException {
5437 iface.savePlugin(args.projectName, args.plugin,resultHandler);
5438 }
5439 }
5440
5441 public static class removePlugin<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, removePlugin_args, Void> {
5442 public removePlugin() {
5443 super("removePlugin");
5444 }
5445
5446 public removePlugin_args getEmptyArgsInstance() {
5447 return new removePlugin_args();
5448 }
5449
5450 public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
5451 final org.apache.thrift.AsyncProcessFunction fcall = this;
5452 return new AsyncMethodCallback<Void>() {
5453 public void onComplete(Void o) {
5454 removePlugin_result result = new removePlugin_result();
5455 try {
5456 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
5457 return;
5458 } catch (Exception e) {
5459 LOGGER.error("Exception writing to internal frame buffer", e);
5460 }
5461 fb.close();
5462 }
5463 public void onError(Exception e) {
5464 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
5465 org.apache.thrift.TBase msg;
5466 removePlugin_result result = new removePlugin_result();
5467 if (e instanceof CentralDogmaException) {
5468 result.e = (CentralDogmaException) e;
5469 result.setEIsSet(true);
5470 msg = result;
5471 }
5472 else
5473 {
5474 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
5475 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
5476 }
5477 try {
5478 fcall.sendResponse(fb,msg,msgType,seqid);
5479 return;
5480 } catch (Exception ex) {
5481 LOGGER.error("Exception writing to internal frame buffer", ex);
5482 }
5483 fb.close();
5484 }
5485 };
5486 }
5487
5488 protected boolean isOneway() {
5489 return false;
5490 }
5491
5492 public void start(I iface, removePlugin_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException {
5493 iface.removePlugin(args.projectName, args.pluginName,resultHandler);
5494 }
5495 }
5496
5497 public static class listPlugins<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, listPlugins_args, List<Plugin>> {
5498 public listPlugins() {
5499 super("listPlugins");
5500 }
5501
5502 public listPlugins_args getEmptyArgsInstance() {
5503 return new listPlugins_args();
5504 }
5505
5506 public AsyncMethodCallback<List<Plugin>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
5507 final org.apache.thrift.AsyncProcessFunction fcall = this;
5508 return new AsyncMethodCallback<List<Plugin>>() {
5509 public void onComplete(List<Plugin> o) {
5510 listPlugins_result result = new listPlugins_result();
5511 result.success = o;
5512 try {
5513 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
5514 return;
5515 } catch (Exception e) {
5516 LOGGER.error("Exception writing to internal frame buffer", e);
5517 }
5518 fb.close();
5519 }
5520 public void onError(Exception e) {
5521 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
5522 org.apache.thrift.TBase msg;
5523 listPlugins_result result = new listPlugins_result();
5524 if (e instanceof CentralDogmaException) {
5525 result.e = (CentralDogmaException) e;
5526 result.setEIsSet(true);
5527 msg = result;
5528 }
5529 else
5530 {
5531 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
5532 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
5533 }
5534 try {
5535 fcall.sendResponse(fb,msg,msgType,seqid);
5536 return;
5537 } catch (Exception ex) {
5538 LOGGER.error("Exception writing to internal frame buffer", ex);
5539 }
5540 fb.close();
5541 }
5542 };
5543 }
5544
5545 protected boolean isOneway() {
5546 return false;
5547 }
5548
5549 public void start(I iface, listPlugins_args args, org.apache.thrift.async.AsyncMethodCallback<List<Plugin>> resultHandler) throws TException {
5550 iface.listPlugins(args.projectName,resultHandler);
5551 }
5552 }
5553
5554 public static class listPluginOperations<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, listPluginOperations_args, List<PluginOperation>> {
5555 public listPluginOperations() {
5556 super("listPluginOperations");
5557 }
5558
5559 public listPluginOperations_args getEmptyArgsInstance() {
5560 return new listPluginOperations_args();
5561 }
5562
5563 public AsyncMethodCallback<List<PluginOperation>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
5564 final org.apache.thrift.AsyncProcessFunction fcall = this;
5565 return new AsyncMethodCallback<List<PluginOperation>>() {
5566 public void onComplete(List<PluginOperation> o) {
5567 listPluginOperations_result result = new listPluginOperations_result();
5568 result.success = o;
5569 try {
5570 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
5571 return;
5572 } catch (Exception e) {
5573 LOGGER.error("Exception writing to internal frame buffer", e);
5574 }
5575 fb.close();
5576 }
5577 public void onError(Exception e) {
5578 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
5579 org.apache.thrift.TBase msg;
5580 listPluginOperations_result result = new listPluginOperations_result();
5581 if (e instanceof CentralDogmaException) {
5582 result.e = (CentralDogmaException) e;
5583 result.setEIsSet(true);
5584 msg = result;
5585 }
5586 else
5587 {
5588 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
5589 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
5590 }
5591 try {
5592 fcall.sendResponse(fb,msg,msgType,seqid);
5593 return;
5594 } catch (Exception ex) {
5595 LOGGER.error("Exception writing to internal frame buffer", ex);
5596 }
5597 fb.close();
5598 }
5599 };
5600 }
5601
5602 protected boolean isOneway() {
5603 return false;
5604 }
5605
5606 public void start(I iface, listPluginOperations_args args, org.apache.thrift.async.AsyncMethodCallback<List<PluginOperation>> resultHandler) throws TException {
5607 iface.listPluginOperations(args.projectName,resultHandler);
5608 }
5609 }
5610
5611 public static class performPluginOperation<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, performPluginOperation_args, String> {
5612 public performPluginOperation() {
5613 super("performPluginOperation");
5614 }
5615
5616 public performPluginOperation_args getEmptyArgsInstance() {
5617 return new performPluginOperation_args();
5618 }
5619
5620 public AsyncMethodCallback<String> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
5621 final org.apache.thrift.AsyncProcessFunction fcall = this;
5622 return new AsyncMethodCallback<String>() {
5623 public void onComplete(String o) {
5624 performPluginOperation_result result = new performPluginOperation_result();
5625 result.success = o;
5626 try {
5627 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
5628 return;
5629 } catch (Exception e) {
5630 LOGGER.error("Exception writing to internal frame buffer", e);
5631 }
5632 fb.close();
5633 }
5634 public void onError(Exception e) {
5635 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
5636 org.apache.thrift.TBase msg;
5637 performPluginOperation_result result = new performPluginOperation_result();
5638 if (e instanceof CentralDogmaException) {
5639 result.e = (CentralDogmaException) e;
5640 result.setEIsSet(true);
5641 msg = result;
5642 }
5643 else
5644 {
5645 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
5646 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
5647 }
5648 try {
5649 fcall.sendResponse(fb,msg,msgType,seqid);
5650 return;
5651 } catch (Exception ex) {
5652 LOGGER.error("Exception writing to internal frame buffer", ex);
5653 }
5654 fb.close();
5655 }
5656 };
5657 }
5658
5659 protected boolean isOneway() {
5660 return false;
5661 }
5662
5663 public void start(I iface, performPluginOperation_args args, org.apache.thrift.async.AsyncMethodCallback<String> resultHandler) throws TException {
5664 iface.performPluginOperation(args.projectName, args.pluginName, args.operationName, args.params,resultHandler);
5665 }
5666 }
5667
5668 public static class queryByNamedQuery<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, queryByNamedQuery_args, String> {
5669 public queryByNamedQuery() {
5670 super("queryByNamedQuery");
5671 }
5672
5673 public queryByNamedQuery_args getEmptyArgsInstance() {
5674 return new queryByNamedQuery_args();
5675 }
5676
5677 public AsyncMethodCallback<String> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
5678 final org.apache.thrift.AsyncProcessFunction fcall = this;
5679 return new AsyncMethodCallback<String>() {
5680 public void onComplete(String o) {
5681 queryByNamedQuery_result result = new queryByNamedQuery_result();
5682 result.success = o;
5683 try {
5684 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
5685 return;
5686 } catch (Exception e) {
5687 LOGGER.error("Exception writing to internal frame buffer", e);
5688 }
5689 fb.close();
5690 }
5691 public void onError(Exception e) {
5692 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
5693 org.apache.thrift.TBase msg;
5694 queryByNamedQuery_result result = new queryByNamedQuery_result();
5695 if (e instanceof CentralDogmaException) {
5696 result.e = (CentralDogmaException) e;
5697 result.setEIsSet(true);
5698 msg = result;
5699 }
5700 else
5701 {
5702 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
5703 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
5704 }
5705 try {
5706 fcall.sendResponse(fb,msg,msgType,seqid);
5707 return;
5708 } catch (Exception ex) {
5709 LOGGER.error("Exception writing to internal frame buffer", ex);
5710 }
5711 fb.close();
5712 }
5713 };
5714 }
5715
5716 protected boolean isOneway() {
5717 return false;
5718 }
5719
5720 public void start(I iface, queryByNamedQuery_args args, org.apache.thrift.async.AsyncMethodCallback<String> resultHandler) throws TException {
5721 iface.queryByNamedQuery(args.projectName, args.namedQuery, args.revision,resultHandler);
5722 }
5723 }
5724
5725 public static class listSubscribers<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, listSubscribers_args, List<Subscriber>> {
5726 public listSubscribers() {
5727 super("listSubscribers");
5728 }
5729
5730 public listSubscribers_args getEmptyArgsInstance() {
5731 return new listSubscribers_args();
5732 }
5733
5734 public AsyncMethodCallback<List<Subscriber>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
5735 final org.apache.thrift.AsyncProcessFunction fcall = this;
5736 return new AsyncMethodCallback<List<Subscriber>>() {
5737 public void onComplete(List<Subscriber> o) {
5738 listSubscribers_result result = new listSubscribers_result();
5739 result.success = o;
5740 try {
5741 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
5742 return;
5743 } catch (Exception e) {
5744 LOGGER.error("Exception writing to internal frame buffer", e);
5745 }
5746 fb.close();
5747 }
5748 public void onError(Exception e) {
5749 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
5750 org.apache.thrift.TBase msg;
5751 listSubscribers_result result = new listSubscribers_result();
5752 if (e instanceof CentralDogmaException) {
5753 result.e = (CentralDogmaException) e;
5754 result.setEIsSet(true);
5755 msg = result;
5756 }
5757 else
5758 {
5759 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
5760 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
5761 }
5762 try {
5763 fcall.sendResponse(fb,msg,msgType,seqid);
5764 return;
5765 } catch (Exception ex) {
5766 LOGGER.error("Exception writing to internal frame buffer", ex);
5767 }
5768 fb.close();
5769 }
5770 };
5771 }
5772
5773 protected boolean isOneway() {
5774 return false;
5775 }
5776
5777 public void start(I iface, listSubscribers_args args, org.apache.thrift.async.AsyncMethodCallback<List<Subscriber>> resultHandler) throws TException {
5778 iface.listSubscribers(args.projectName, args.repositoryName, args.path,resultHandler);
5779 }
5780 }
5781
5782 }
5783
5784 public static class createProject_args implements org.apache.thrift.TBase<createProject_args, createProject_args._Fields>, java.io.Serializable, Cloneable, Comparable<createProject_args> {
5785 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createProject_args");
5786
5787 private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)1);
5788
5789 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
5790 static {
5791 schemes.put(StandardScheme.class, new createProject_argsStandardSchemeFactory());
5792 schemes.put(TupleScheme.class, new createProject_argsTupleSchemeFactory());
5793 }
5794
5795 public String name;
5796
5797
5798 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5799 NAME((short)1, "name");
5800
5801 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5802
5803 static {
5804 for (_Fields field : EnumSet.allOf(_Fields.class)) {
5805 byName.put(field.getFieldName(), field);
5806 }
5807 }
5808
5809
5810
5811
5812 public static _Fields findByThriftId(int fieldId) {
5813 switch(fieldId) {
5814 case 1:
5815 return NAME;
5816 default:
5817 return null;
5818 }
5819 }
5820
5821
5822
5823
5824
5825 public static _Fields findByThriftIdOrThrow(int fieldId) {
5826 _Fields fields = findByThriftId(fieldId);
5827 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5828 return fields;
5829 }
5830
5831
5832
5833
5834 public static _Fields findByName(String name) {
5835 return byName.get(name);
5836 }
5837
5838 private final short _thriftId;
5839 private final String _fieldName;
5840
5841 _Fields(short thriftId, String fieldName) {
5842 _thriftId = thriftId;
5843 _fieldName = fieldName;
5844 }
5845
5846 public short getThriftFieldId() {
5847 return _thriftId;
5848 }
5849
5850 public String getFieldName() {
5851 return _fieldName;
5852 }
5853 }
5854
5855
5856 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
5857 static {
5858 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5859 tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT,
5860 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
5861 metaDataMap = Collections.unmodifiableMap(tmpMap);
5862 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createProject_args.class, metaDataMap);
5863 }
5864
5865 public createProject_args() {
5866 }
5867
5868 public createProject_args(
5869 String name)
5870 {
5871 this();
5872 this.name = name;
5873 }
5874
5875
5876
5877
5878 public createProject_args(createProject_args other) {
5879 if (other.isSetName()) {
5880 this.name = other.name;
5881 }
5882 }
5883
5884 public createProject_args deepCopy() {
5885 return new createProject_args(this);
5886 }
5887
5888 @Override
5889 public void clear() {
5890 this.name = null;
5891 }
5892
5893 public String getName() {
5894 return this.name;
5895 }
5896
5897 public createProject_args setName(String name) {
5898 this.name = name;
5899 return this;
5900 }
5901
5902 public void unsetName() {
5903 this.name = null;
5904 }
5905
5906
5907 public boolean isSetName() {
5908 return this.name != null;
5909 }
5910
5911 public void setNameIsSet(boolean value) {
5912 if (!value) {
5913 this.name = null;
5914 }
5915 }
5916
5917 public void setFieldValue(_Fields field, Object value) {
5918 switch (field) {
5919 case NAME:
5920 if (value == null) {
5921 unsetName();
5922 } else {
5923 setName((String)value);
5924 }
5925 break;
5926
5927 }
5928 }
5929
5930 public Object getFieldValue(_Fields field) {
5931 switch (field) {
5932 case NAME:
5933 return getName();
5934
5935 }
5936 throw new IllegalStateException();
5937 }
5938
5939
5940 public boolean isSet(_Fields field) {
5941 if (field == null) {
5942 throw new IllegalArgumentException();
5943 }
5944
5945 switch (field) {
5946 case NAME:
5947 return isSetName();
5948 }
5949 throw new IllegalStateException();
5950 }
5951
5952 @Override
5953 public boolean equals(Object that) {
5954 if (that == null)
5955 return false;
5956 if (that instanceof createProject_args)
5957 return this.equals((createProject_args)that);
5958 return false;
5959 }
5960
5961 public boolean equals(createProject_args that) {
5962 if (that == null)
5963 return false;
5964
5965 boolean this_present_name = true && this.isSetName();
5966 boolean that_present_name = true && that.isSetName();
5967 if (this_present_name || that_present_name) {
5968 if (!(this_present_name && that_present_name))
5969 return false;
5970 if (!this.name.equals(that.name))
5971 return false;
5972 }
5973
5974 return true;
5975 }
5976
5977 @Override
5978 public int hashCode() {
5979 List<Object> list = new ArrayList<Object>();
5980
5981 boolean present_name = true && (isSetName());
5982 list.add(present_name);
5983 if (present_name)
5984 list.add(name);
5985
5986 return list.hashCode();
5987 }
5988
5989 @Override
5990 public int compareTo(createProject_args other) {
5991 if (!getClass().equals(other.getClass())) {
5992 return getClass().getName().compareTo(other.getClass().getName());
5993 }
5994
5995 int lastComparison = 0;
5996
5997 lastComparison = Boolean.valueOf(isSetName()).compareTo(other.isSetName());
5998 if (lastComparison != 0) {
5999 return lastComparison;
6000 }
6001 if (isSetName()) {
6002 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, other.name);
6003 if (lastComparison != 0) {
6004 return lastComparison;
6005 }
6006 }
6007 return 0;
6008 }
6009
6010 public _Fields fieldForId(int fieldId) {
6011 return _Fields.findByThriftId(fieldId);
6012 }
6013
6014 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6015 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
6016 }
6017
6018 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
6019 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
6020 }
6021
6022 @Override
6023 public String toString() {
6024 StringBuilder sb = new StringBuilder("createProject_args(");
6025 boolean first = true;
6026
6027 sb.append("name:");
6028 if (this.name == null) {
6029 sb.append("null");
6030 } else {
6031 sb.append(this.name);
6032 }
6033 first = false;
6034 sb.append(")");
6035 return sb.toString();
6036 }
6037
6038 public void validate() throws org.apache.thrift.TException {
6039
6040
6041 }
6042
6043 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6044 try {
6045 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6046 } catch (org.apache.thrift.TException te) {
6047 throw new java.io.IOException(te);
6048 }
6049 }
6050
6051 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6052 try {
6053 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6054 } catch (org.apache.thrift.TException te) {
6055 throw new java.io.IOException(te);
6056 }
6057 }
6058
6059 private static class createProject_argsStandardSchemeFactory implements SchemeFactory {
6060 public createProject_argsStandardScheme getScheme() {
6061 return new createProject_argsStandardScheme();
6062 }
6063 }
6064
6065 private static class createProject_argsStandardScheme extends StandardScheme<createProject_args> {
6066
6067 public void read(org.apache.thrift.protocol.TProtocol iprot, createProject_args struct) throws org.apache.thrift.TException {
6068 org.apache.thrift.protocol.TField schemeField;
6069 iprot.readStructBegin();
6070 while (true)
6071 {
6072 schemeField = iprot.readFieldBegin();
6073 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
6074 break;
6075 }
6076 switch (schemeField.id) {
6077 case 1:
6078 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
6079 struct.name = iprot.readString();
6080 struct.setNameIsSet(true);
6081 } else {
6082 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
6083 }
6084 break;
6085 default:
6086 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
6087 }
6088 iprot.readFieldEnd();
6089 }
6090 iprot.readStructEnd();
6091
6092
6093 struct.validate();
6094 }
6095
6096 public void write(org.apache.thrift.protocol.TProtocol oprot, createProject_args struct) throws org.apache.thrift.TException {
6097 struct.validate();
6098
6099 oprot.writeStructBegin(STRUCT_DESC);
6100 if (struct.name != null) {
6101 oprot.writeFieldBegin(NAME_FIELD_DESC);
6102 oprot.writeString(struct.name);
6103 oprot.writeFieldEnd();
6104 }
6105 oprot.writeFieldStop();
6106 oprot.writeStructEnd();
6107 }
6108
6109 }
6110
6111 private static class createProject_argsTupleSchemeFactory implements SchemeFactory {
6112 public createProject_argsTupleScheme getScheme() {
6113 return new createProject_argsTupleScheme();
6114 }
6115 }
6116
6117 private static class createProject_argsTupleScheme extends TupleScheme<createProject_args> {
6118
6119 @Override
6120 public void write(org.apache.thrift.protocol.TProtocol prot, createProject_args struct) throws org.apache.thrift.TException {
6121 TTupleProtocol oprot = (TTupleProtocol) prot;
6122 BitSet optionals = new BitSet();
6123 if (struct.isSetName()) {
6124 optionals.set(0);
6125 }
6126 oprot.writeBitSet(optionals, 1);
6127 if (struct.isSetName()) {
6128 oprot.writeString(struct.name);
6129 }
6130 }
6131
6132 @Override
6133 public void read(org.apache.thrift.protocol.TProtocol prot, createProject_args struct) throws org.apache.thrift.TException {
6134 TTupleProtocol iprot = (TTupleProtocol) prot;
6135 BitSet incoming = iprot.readBitSet(1);
6136 if (incoming.get(0)) {
6137 struct.name = iprot.readString();
6138 struct.setNameIsSet(true);
6139 }
6140 }
6141 }
6142
6143 }
6144
6145 public static class createProject_result implements org.apache.thrift.TBase<createProject_result, createProject_result._Fields>, java.io.Serializable, Cloneable, Comparable<createProject_result> {
6146 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createProject_result");
6147
6148 private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
6149
6150 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
6151 static {
6152 schemes.put(StandardScheme.class, new createProject_resultStandardSchemeFactory());
6153 schemes.put(TupleScheme.class, new createProject_resultTupleSchemeFactory());
6154 }
6155
6156 public CentralDogmaException e;
6157
6158
6159 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6160 E((short)1, "e");
6161
6162 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6163
6164 static {
6165 for (_Fields field : EnumSet.allOf(_Fields.class)) {
6166 byName.put(field.getFieldName(), field);
6167 }
6168 }
6169
6170
6171
6172
6173 public static _Fields findByThriftId(int fieldId) {
6174 switch(fieldId) {
6175 case 1:
6176 return E;
6177 default:
6178 return null;
6179 }
6180 }
6181
6182
6183
6184
6185
6186 public static _Fields findByThriftIdOrThrow(int fieldId) {
6187 _Fields fields = findByThriftId(fieldId);
6188 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6189 return fields;
6190 }
6191
6192
6193
6194
6195 public static _Fields findByName(String name) {
6196 return byName.get(name);
6197 }
6198
6199 private final short _thriftId;
6200 private final String _fieldName;
6201
6202 _Fields(short thriftId, String fieldName) {
6203 _thriftId = thriftId;
6204 _fieldName = fieldName;
6205 }
6206
6207 public short getThriftFieldId() {
6208 return _thriftId;
6209 }
6210
6211 public String getFieldName() {
6212 return _fieldName;
6213 }
6214 }
6215
6216
6217 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6218 static {
6219 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6220 tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
6221 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6222 metaDataMap = Collections.unmodifiableMap(tmpMap);
6223 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createProject_result.class, metaDataMap);
6224 }
6225
6226 public createProject_result() {
6227 }
6228
6229 public createProject_result(
6230 CentralDogmaException e)
6231 {
6232 this();
6233 this.e = e;
6234 }
6235
6236
6237
6238
6239 public createProject_result(createProject_result other) {
6240 if (other.isSetE()) {
6241 this.e = new CentralDogmaException(other.e);
6242 }
6243 }
6244
6245 public createProject_result deepCopy() {
6246 return new createProject_result(this);
6247 }
6248
6249 @Override
6250 public void clear() {
6251 this.e = null;
6252 }
6253
6254 public CentralDogmaException getE() {
6255 return this.e;
6256 }
6257
6258 public createProject_result setE(CentralDogmaException e) {
6259 this.e = e;
6260 return this;
6261 }
6262
6263 public void unsetE() {
6264 this.e = null;
6265 }
6266
6267
6268 public boolean isSetE() {
6269 return this.e != null;
6270 }
6271
6272 public void setEIsSet(boolean value) {
6273 if (!value) {
6274 this.e = null;
6275 }
6276 }
6277
6278 public void setFieldValue(_Fields field, Object value) {
6279 switch (field) {
6280 case E:
6281 if (value == null) {
6282 unsetE();
6283 } else {
6284 setE((CentralDogmaException)value);
6285 }
6286 break;
6287
6288 }
6289 }
6290
6291 public Object getFieldValue(_Fields field) {
6292 switch (field) {
6293 case E:
6294 return getE();
6295
6296 }
6297 throw new IllegalStateException();
6298 }
6299
6300
6301 public boolean isSet(_Fields field) {
6302 if (field == null) {
6303 throw new IllegalArgumentException();
6304 }
6305
6306 switch (field) {
6307 case E:
6308 return isSetE();
6309 }
6310 throw new IllegalStateException();
6311 }
6312
6313 @Override
6314 public boolean equals(Object that) {
6315 if (that == null)
6316 return false;
6317 if (that instanceof createProject_result)
6318 return this.equals((createProject_result)that);
6319 return false;
6320 }
6321
6322 public boolean equals(createProject_result that) {
6323 if (that == null)
6324 return false;
6325
6326 boolean this_present_e = true && this.isSetE();
6327 boolean that_present_e = true && that.isSetE();
6328 if (this_present_e || that_present_e) {
6329 if (!(this_present_e && that_present_e))
6330 return false;
6331 if (!this.e.equals(that.e))
6332 return false;
6333 }
6334
6335 return true;
6336 }
6337
6338 @Override
6339 public int hashCode() {
6340 List<Object> list = new ArrayList<Object>();
6341
6342 boolean present_e = true && (isSetE());
6343 list.add(present_e);
6344 if (present_e)
6345 list.add(e);
6346
6347 return list.hashCode();
6348 }
6349
6350 @Override
6351 public int compareTo(createProject_result other) {
6352 if (!getClass().equals(other.getClass())) {
6353 return getClass().getName().compareTo(other.getClass().getName());
6354 }
6355
6356 int lastComparison = 0;
6357
6358 lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE());
6359 if (lastComparison != 0) {
6360 return lastComparison;
6361 }
6362 if (isSetE()) {
6363 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e);
6364 if (lastComparison != 0) {
6365 return lastComparison;
6366 }
6367 }
6368 return 0;
6369 }
6370
6371 public _Fields fieldForId(int fieldId) {
6372 return _Fields.findByThriftId(fieldId);
6373 }
6374
6375 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6376 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
6377 }
6378
6379 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
6380 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
6381 }
6382
6383 @Override
6384 public String toString() {
6385 StringBuilder sb = new StringBuilder("createProject_result(");
6386 boolean first = true;
6387
6388 sb.append("e:");
6389 if (this.e == null) {
6390 sb.append("null");
6391 } else {
6392 sb.append(this.e);
6393 }
6394 first = false;
6395 sb.append(")");
6396 return sb.toString();
6397 }
6398
6399 public void validate() throws org.apache.thrift.TException {
6400
6401
6402 }
6403
6404 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6405 try {
6406 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6407 } catch (org.apache.thrift.TException te) {
6408 throw new java.io.IOException(te);
6409 }
6410 }
6411
6412 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6413 try {
6414 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6415 } catch (org.apache.thrift.TException te) {
6416 throw new java.io.IOException(te);
6417 }
6418 }
6419
6420 private static class createProject_resultStandardSchemeFactory implements SchemeFactory {
6421 public createProject_resultStandardScheme getScheme() {
6422 return new createProject_resultStandardScheme();
6423 }
6424 }
6425
6426 private static class createProject_resultStandardScheme extends StandardScheme<createProject_result> {
6427
6428 public void read(org.apache.thrift.protocol.TProtocol iprot, createProject_result struct) throws org.apache.thrift.TException {
6429 org.apache.thrift.protocol.TField schemeField;
6430 iprot.readStructBegin();
6431 while (true)
6432 {
6433 schemeField = iprot.readFieldBegin();
6434 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
6435 break;
6436 }
6437 switch (schemeField.id) {
6438 case 1:
6439 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
6440 struct.e = new CentralDogmaException();
6441 struct.e.read(iprot);
6442 struct.setEIsSet(true);
6443 } else {
6444 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
6445 }
6446 break;
6447 default:
6448 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
6449 }
6450 iprot.readFieldEnd();
6451 }
6452 iprot.readStructEnd();
6453
6454
6455 struct.validate();
6456 }
6457
6458 public void write(org.apache.thrift.protocol.TProtocol oprot, createProject_result struct) throws org.apache.thrift.TException {
6459 struct.validate();
6460
6461 oprot.writeStructBegin(STRUCT_DESC);
6462 if (struct.e != null) {
6463 oprot.writeFieldBegin(E_FIELD_DESC);
6464 struct.e.write(oprot);
6465 oprot.writeFieldEnd();
6466 }
6467 oprot.writeFieldStop();
6468 oprot.writeStructEnd();
6469 }
6470
6471 }
6472
6473 private static class createProject_resultTupleSchemeFactory implements SchemeFactory {
6474 public createProject_resultTupleScheme getScheme() {
6475 return new createProject_resultTupleScheme();
6476 }
6477 }
6478
6479 private static class createProject_resultTupleScheme extends TupleScheme<createProject_result> {
6480
6481 @Override
6482 public void write(org.apache.thrift.protocol.TProtocol prot, createProject_result struct) throws org.apache.thrift.TException {
6483 TTupleProtocol oprot = (TTupleProtocol) prot;
6484 BitSet optionals = new BitSet();
6485 if (struct.isSetE()) {
6486 optionals.set(0);
6487 }
6488 oprot.writeBitSet(optionals, 1);
6489 if (struct.isSetE()) {
6490 struct.e.write(oprot);
6491 }
6492 }
6493
6494 @Override
6495 public void read(org.apache.thrift.protocol.TProtocol prot, createProject_result struct) throws org.apache.thrift.TException {
6496 TTupleProtocol iprot = (TTupleProtocol) prot;
6497 BitSet incoming = iprot.readBitSet(1);
6498 if (incoming.get(0)) {
6499 struct.e = new CentralDogmaException();
6500 struct.e.read(iprot);
6501 struct.setEIsSet(true);
6502 }
6503 }
6504 }
6505
6506 }
6507
6508 public static class removeProject_args implements org.apache.thrift.TBase<removeProject_args, removeProject_args._Fields>, java.io.Serializable, Cloneable, Comparable<removeProject_args> {
6509 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("removeProject_args");
6510
6511 private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)1);
6512
6513 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
6514 static {
6515 schemes.put(StandardScheme.class, new removeProject_argsStandardSchemeFactory());
6516 schemes.put(TupleScheme.class, new removeProject_argsTupleSchemeFactory());
6517 }
6518
6519 public String name;
6520
6521
6522 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6523 NAME((short)1, "name");
6524
6525 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6526
6527 static {
6528 for (_Fields field : EnumSet.allOf(_Fields.class)) {
6529 byName.put(field.getFieldName(), field);
6530 }
6531 }
6532
6533
6534
6535
6536 public static _Fields findByThriftId(int fieldId) {
6537 switch(fieldId) {
6538 case 1:
6539 return NAME;
6540 default:
6541 return null;
6542 }
6543 }
6544
6545
6546
6547
6548
6549 public static _Fields findByThriftIdOrThrow(int fieldId) {
6550 _Fields fields = findByThriftId(fieldId);
6551 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6552 return fields;
6553 }
6554
6555
6556
6557
6558 public static _Fields findByName(String name) {
6559 return byName.get(name);
6560 }
6561
6562 private final short _thriftId;
6563 private final String _fieldName;
6564
6565 _Fields(short thriftId, String fieldName) {
6566 _thriftId = thriftId;
6567 _fieldName = fieldName;
6568 }
6569
6570 public short getThriftFieldId() {
6571 return _thriftId;
6572 }
6573
6574 public String getFieldName() {
6575 return _fieldName;
6576 }
6577 }
6578
6579
6580 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6581 static {
6582 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6583 tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT,
6584 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
6585 metaDataMap = Collections.unmodifiableMap(tmpMap);
6586 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(removeProject_args.class, metaDataMap);
6587 }
6588
6589 public removeProject_args() {
6590 }
6591
6592 public removeProject_args(
6593 String name)
6594 {
6595 this();
6596 this.name = name;
6597 }
6598
6599
6600
6601
6602 public removeProject_args(removeProject_args other) {
6603 if (other.isSetName()) {
6604 this.name = other.name;
6605 }
6606 }
6607
6608 public removeProject_args deepCopy() {
6609 return new removeProject_args(this);
6610 }
6611
6612 @Override
6613 public void clear() {
6614 this.name = null;
6615 }
6616
6617 public String getName() {
6618 return this.name;
6619 }
6620
6621 public removeProject_args setName(String name) {
6622 this.name = name;
6623 return this;
6624 }
6625
6626 public void unsetName() {
6627 this.name = null;
6628 }
6629
6630
6631 public boolean isSetName() {
6632 return this.name != null;
6633 }
6634
6635 public void setNameIsSet(boolean value) {
6636 if (!value) {
6637 this.name = null;
6638 }
6639 }
6640
6641 public void setFieldValue(_Fields field, Object value) {
6642 switch (field) {
6643 case NAME:
6644 if (value == null) {
6645 unsetName();
6646 } else {
6647 setName((String)value);
6648 }
6649 break;
6650
6651 }
6652 }
6653
6654 public Object getFieldValue(_Fields field) {
6655 switch (field) {
6656 case NAME:
6657 return getName();
6658
6659 }
6660 throw new IllegalStateException();
6661 }
6662
6663
6664 public boolean isSet(_Fields field) {
6665 if (field == null) {
6666 throw new IllegalArgumentException();
6667 }
6668
6669 switch (field) {
6670 case NAME:
6671 return isSetName();
6672 }
6673 throw new IllegalStateException();
6674 }
6675
6676 @Override
6677 public boolean equals(Object that) {
6678 if (that == null)
6679 return false;
6680 if (that instanceof removeProject_args)
6681 return this.equals((removeProject_args)that);
6682 return false;
6683 }
6684
6685 public boolean equals(removeProject_args that) {
6686 if (that == null)
6687 return false;
6688
6689 boolean this_present_name = true && this.isSetName();
6690 boolean that_present_name = true && that.isSetName();
6691 if (this_present_name || that_present_name) {
6692 if (!(this_present_name && that_present_name))
6693 return false;
6694 if (!this.name.equals(that.name))
6695 return false;
6696 }
6697
6698 return true;
6699 }
6700
6701 @Override
6702 public int hashCode() {
6703 List<Object> list = new ArrayList<Object>();
6704
6705 boolean present_name = true && (isSetName());
6706 list.add(present_name);
6707 if (present_name)
6708 list.add(name);
6709
6710 return list.hashCode();
6711 }
6712
6713 @Override
6714 public int compareTo(removeProject_args other) {
6715 if (!getClass().equals(other.getClass())) {
6716 return getClass().getName().compareTo(other.getClass().getName());
6717 }
6718
6719 int lastComparison = 0;
6720
6721 lastComparison = Boolean.valueOf(isSetName()).compareTo(other.isSetName());
6722 if (lastComparison != 0) {
6723 return lastComparison;
6724 }
6725 if (isSetName()) {
6726 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, other.name);
6727 if (lastComparison != 0) {
6728 return lastComparison;
6729 }
6730 }
6731 return 0;
6732 }
6733
6734 public _Fields fieldForId(int fieldId) {
6735 return _Fields.findByThriftId(fieldId);
6736 }
6737
6738 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6739 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
6740 }
6741
6742 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
6743 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
6744 }
6745
6746 @Override
6747 public String toString() {
6748 StringBuilder sb = new StringBuilder("removeProject_args(");
6749 boolean first = true;
6750
6751 sb.append("name:");
6752 if (this.name == null) {
6753 sb.append("null");
6754 } else {
6755 sb.append(this.name);
6756 }
6757 first = false;
6758 sb.append(")");
6759 return sb.toString();
6760 }
6761
6762 public void validate() throws org.apache.thrift.TException {
6763
6764
6765 }
6766
6767 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6768 try {
6769 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6770 } catch (org.apache.thrift.TException te) {
6771 throw new java.io.IOException(te);
6772 }
6773 }
6774
6775 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6776 try {
6777 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6778 } catch (org.apache.thrift.TException te) {
6779 throw new java.io.IOException(te);
6780 }
6781 }
6782
6783 private static class removeProject_argsStandardSchemeFactory implements SchemeFactory {
6784 public removeProject_argsStandardScheme getScheme() {
6785 return new removeProject_argsStandardScheme();
6786 }
6787 }
6788
6789 private static class removeProject_argsStandardScheme extends StandardScheme<removeProject_args> {
6790
6791 public void read(org.apache.thrift.protocol.TProtocol iprot, removeProject_args struct) throws org.apache.thrift.TException {
6792 org.apache.thrift.protocol.TField schemeField;
6793 iprot.readStructBegin();
6794 while (true)
6795 {
6796 schemeField = iprot.readFieldBegin();
6797 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
6798 break;
6799 }
6800 switch (schemeField.id) {
6801 case 1:
6802 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
6803 struct.name = iprot.readString();
6804 struct.setNameIsSet(true);
6805 } else {
6806 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
6807 }
6808 break;
6809 default:
6810 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
6811 }
6812 iprot.readFieldEnd();
6813 }
6814 iprot.readStructEnd();
6815
6816
6817 struct.validate();
6818 }
6819
6820 public void write(org.apache.thrift.protocol.TProtocol oprot, removeProject_args struct) throws org.apache.thrift.TException {
6821 struct.validate();
6822
6823 oprot.writeStructBegin(STRUCT_DESC);
6824 if (struct.name != null) {
6825 oprot.writeFieldBegin(NAME_FIELD_DESC);
6826 oprot.writeString(struct.name);
6827 oprot.writeFieldEnd();
6828 }
6829 oprot.writeFieldStop();
6830 oprot.writeStructEnd();
6831 }
6832
6833 }
6834
6835 private static class removeProject_argsTupleSchemeFactory implements SchemeFactory {
6836 public removeProject_argsTupleScheme getScheme() {
6837 return new removeProject_argsTupleScheme();
6838 }
6839 }
6840
6841 private static class removeProject_argsTupleScheme extends TupleScheme<removeProject_args> {
6842
6843 @Override
6844 public void write(org.apache.thrift.protocol.TProtocol prot, removeProject_args struct) throws org.apache.thrift.TException {
6845 TTupleProtocol oprot = (TTupleProtocol) prot;
6846 BitSet optionals = new BitSet();
6847 if (struct.isSetName()) {
6848 optionals.set(0);
6849 }
6850 oprot.writeBitSet(optionals, 1);
6851 if (struct.isSetName()) {
6852 oprot.writeString(struct.name);
6853 }
6854 }
6855
6856 @Override
6857 public void read(org.apache.thrift.protocol.TProtocol prot, removeProject_args struct) throws org.apache.thrift.TException {
6858 TTupleProtocol iprot = (TTupleProtocol) prot;
6859 BitSet incoming = iprot.readBitSet(1);
6860 if (incoming.get(0)) {
6861 struct.name = iprot.readString();
6862 struct.setNameIsSet(true);
6863 }
6864 }
6865 }
6866
6867 }
6868
6869 public static class removeProject_result implements org.apache.thrift.TBase<removeProject_result, removeProject_result._Fields>, java.io.Serializable, Cloneable, Comparable<removeProject_result> {
6870 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("removeProject_result");
6871
6872 private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
6873
6874 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
6875 static {
6876 schemes.put(StandardScheme.class, new removeProject_resultStandardSchemeFactory());
6877 schemes.put(TupleScheme.class, new removeProject_resultTupleSchemeFactory());
6878 }
6879
6880 public CentralDogmaException e;
6881
6882
6883 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6884 E((short)1, "e");
6885
6886 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6887
6888 static {
6889 for (_Fields field : EnumSet.allOf(_Fields.class)) {
6890 byName.put(field.getFieldName(), field);
6891 }
6892 }
6893
6894
6895
6896
6897 public static _Fields findByThriftId(int fieldId) {
6898 switch(fieldId) {
6899 case 1:
6900 return E;
6901 default:
6902 return null;
6903 }
6904 }
6905
6906
6907
6908
6909
6910 public static _Fields findByThriftIdOrThrow(int fieldId) {
6911 _Fields fields = findByThriftId(fieldId);
6912 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6913 return fields;
6914 }
6915
6916
6917
6918
6919 public static _Fields findByName(String name) {
6920 return byName.get(name);
6921 }
6922
6923 private final short _thriftId;
6924 private final String _fieldName;
6925
6926 _Fields(short thriftId, String fieldName) {
6927 _thriftId = thriftId;
6928 _fieldName = fieldName;
6929 }
6930
6931 public short getThriftFieldId() {
6932 return _thriftId;
6933 }
6934
6935 public String getFieldName() {
6936 return _fieldName;
6937 }
6938 }
6939
6940
6941 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6942 static {
6943 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6944 tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
6945 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6946 metaDataMap = Collections.unmodifiableMap(tmpMap);
6947 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(removeProject_result.class, metaDataMap);
6948 }
6949
6950 public removeProject_result() {
6951 }
6952
6953 public removeProject_result(
6954 CentralDogmaException e)
6955 {
6956 this();
6957 this.e = e;
6958 }
6959
6960
6961
6962
6963 public removeProject_result(removeProject_result other) {
6964 if (other.isSetE()) {
6965 this.e = new CentralDogmaException(other.e);
6966 }
6967 }
6968
6969 public removeProject_result deepCopy() {
6970 return new removeProject_result(this);
6971 }
6972
6973 @Override
6974 public void clear() {
6975 this.e = null;
6976 }
6977
6978 public CentralDogmaException getE() {
6979 return this.e;
6980 }
6981
6982 public removeProject_result setE(CentralDogmaException e) {
6983 this.e = e;
6984 return this;
6985 }
6986
6987 public void unsetE() {
6988 this.e = null;
6989 }
6990
6991
6992 public boolean isSetE() {
6993 return this.e != null;
6994 }
6995
6996 public void setEIsSet(boolean value) {
6997 if (!value) {
6998 this.e = null;
6999 }
7000 }
7001
7002 public void setFieldValue(_Fields field, Object value) {
7003 switch (field) {
7004 case E:
7005 if (value == null) {
7006 unsetE();
7007 } else {
7008 setE((CentralDogmaException)value);
7009 }
7010 break;
7011
7012 }
7013 }
7014
7015 public Object getFieldValue(_Fields field) {
7016 switch (field) {
7017 case E:
7018 return getE();
7019
7020 }
7021 throw new IllegalStateException();
7022 }
7023
7024
7025 public boolean isSet(_Fields field) {
7026 if (field == null) {
7027 throw new IllegalArgumentException();
7028 }
7029
7030 switch (field) {
7031 case E:
7032 return isSetE();
7033 }
7034 throw new IllegalStateException();
7035 }
7036
7037 @Override
7038 public boolean equals(Object that) {
7039 if (that == null)
7040 return false;
7041 if (that instanceof removeProject_result)
7042 return this.equals((removeProject_result)that);
7043 return false;
7044 }
7045
7046 public boolean equals(removeProject_result that) {
7047 if (that == null)
7048 return false;
7049
7050 boolean this_present_e = true && this.isSetE();
7051 boolean that_present_e = true && that.isSetE();
7052 if (this_present_e || that_present_e) {
7053 if (!(this_present_e && that_present_e))
7054 return false;
7055 if (!this.e.equals(that.e))
7056 return false;
7057 }
7058
7059 return true;
7060 }
7061
7062 @Override
7063 public int hashCode() {
7064 List<Object> list = new ArrayList<Object>();
7065
7066 boolean present_e = true && (isSetE());
7067 list.add(present_e);
7068 if (present_e)
7069 list.add(e);
7070
7071 return list.hashCode();
7072 }
7073
7074 @Override
7075 public int compareTo(removeProject_result other) {
7076 if (!getClass().equals(other.getClass())) {
7077 return getClass().getName().compareTo(other.getClass().getName());
7078 }
7079
7080 int lastComparison = 0;
7081
7082 lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE());
7083 if (lastComparison != 0) {
7084 return lastComparison;
7085 }
7086 if (isSetE()) {
7087 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e);
7088 if (lastComparison != 0) {
7089 return lastComparison;
7090 }
7091 }
7092 return 0;
7093 }
7094
7095 public _Fields fieldForId(int fieldId) {
7096 return _Fields.findByThriftId(fieldId);
7097 }
7098
7099 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7100 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
7101 }
7102
7103 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7104 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
7105 }
7106
7107 @Override
7108 public String toString() {
7109 StringBuilder sb = new StringBuilder("removeProject_result(");
7110 boolean first = true;
7111
7112 sb.append("e:");
7113 if (this.e == null) {
7114 sb.append("null");
7115 } else {
7116 sb.append(this.e);
7117 }
7118 first = false;
7119 sb.append(")");
7120 return sb.toString();
7121 }
7122
7123 public void validate() throws org.apache.thrift.TException {
7124
7125
7126 }
7127
7128 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7129 try {
7130 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7131 } catch (org.apache.thrift.TException te) {
7132 throw new java.io.IOException(te);
7133 }
7134 }
7135
7136 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7137 try {
7138 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7139 } catch (org.apache.thrift.TException te) {
7140 throw new java.io.IOException(te);
7141 }
7142 }
7143
7144 private static class removeProject_resultStandardSchemeFactory implements SchemeFactory {
7145 public removeProject_resultStandardScheme getScheme() {
7146 return new removeProject_resultStandardScheme();
7147 }
7148 }
7149
7150 private static class removeProject_resultStandardScheme extends StandardScheme<removeProject_result> {
7151
7152 public void read(org.apache.thrift.protocol.TProtocol iprot, removeProject_result struct) throws org.apache.thrift.TException {
7153 org.apache.thrift.protocol.TField schemeField;
7154 iprot.readStructBegin();
7155 while (true)
7156 {
7157 schemeField = iprot.readFieldBegin();
7158 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
7159 break;
7160 }
7161 switch (schemeField.id) {
7162 case 1:
7163 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
7164 struct.e = new CentralDogmaException();
7165 struct.e.read(iprot);
7166 struct.setEIsSet(true);
7167 } else {
7168 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
7169 }
7170 break;
7171 default:
7172 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
7173 }
7174 iprot.readFieldEnd();
7175 }
7176 iprot.readStructEnd();
7177
7178
7179 struct.validate();
7180 }
7181
7182 public void write(org.apache.thrift.protocol.TProtocol oprot, removeProject_result struct) throws org.apache.thrift.TException {
7183 struct.validate();
7184
7185 oprot.writeStructBegin(STRUCT_DESC);
7186 if (struct.e != null) {
7187 oprot.writeFieldBegin(E_FIELD_DESC);
7188 struct.e.write(oprot);
7189 oprot.writeFieldEnd();
7190 }
7191 oprot.writeFieldStop();
7192 oprot.writeStructEnd();
7193 }
7194
7195 }
7196
7197 private static class removeProject_resultTupleSchemeFactory implements SchemeFactory {
7198 public removeProject_resultTupleScheme getScheme() {
7199 return new removeProject_resultTupleScheme();
7200 }
7201 }
7202
7203 private static class removeProject_resultTupleScheme extends TupleScheme<removeProject_result> {
7204
7205 @Override
7206 public void write(org.apache.thrift.protocol.TProtocol prot, removeProject_result struct) throws org.apache.thrift.TException {
7207 TTupleProtocol oprot = (TTupleProtocol) prot;
7208 BitSet optionals = new BitSet();
7209 if (struct.isSetE()) {
7210 optionals.set(0);
7211 }
7212 oprot.writeBitSet(optionals, 1);
7213 if (struct.isSetE()) {
7214 struct.e.write(oprot);
7215 }
7216 }
7217
7218 @Override
7219 public void read(org.apache.thrift.protocol.TProtocol prot, removeProject_result struct) throws org.apache.thrift.TException {
7220 TTupleProtocol iprot = (TTupleProtocol) prot;
7221 BitSet incoming = iprot.readBitSet(1);
7222 if (incoming.get(0)) {
7223 struct.e = new CentralDogmaException();
7224 struct.e.read(iprot);
7225 struct.setEIsSet(true);
7226 }
7227 }
7228 }
7229
7230 }
7231
7232 public static class unremoveProject_args implements org.apache.thrift.TBase<unremoveProject_args, unremoveProject_args._Fields>, java.io.Serializable, Cloneable, Comparable<unremoveProject_args> {
7233 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("unremoveProject_args");
7234
7235 private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)1);
7236
7237 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
7238 static {
7239 schemes.put(StandardScheme.class, new unremoveProject_argsStandardSchemeFactory());
7240 schemes.put(TupleScheme.class, new unremoveProject_argsTupleSchemeFactory());
7241 }
7242
7243 public String name;
7244
7245
7246 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7247 NAME((short)1, "name");
7248
7249 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7250
7251 static {
7252 for (_Fields field : EnumSet.allOf(_Fields.class)) {
7253 byName.put(field.getFieldName(), field);
7254 }
7255 }
7256
7257
7258
7259
7260 public static _Fields findByThriftId(int fieldId) {
7261 switch(fieldId) {
7262 case 1:
7263 return NAME;
7264 default:
7265 return null;
7266 }
7267 }
7268
7269
7270
7271
7272
7273 public static _Fields findByThriftIdOrThrow(int fieldId) {
7274 _Fields fields = findByThriftId(fieldId);
7275 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7276 return fields;
7277 }
7278
7279
7280
7281
7282 public static _Fields findByName(String name) {
7283 return byName.get(name);
7284 }
7285
7286 private final short _thriftId;
7287 private final String _fieldName;
7288
7289 _Fields(short thriftId, String fieldName) {
7290 _thriftId = thriftId;
7291 _fieldName = fieldName;
7292 }
7293
7294 public short getThriftFieldId() {
7295 return _thriftId;
7296 }
7297
7298 public String getFieldName() {
7299 return _fieldName;
7300 }
7301 }
7302
7303
7304 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7305 static {
7306 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7307 tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT,
7308 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
7309 metaDataMap = Collections.unmodifiableMap(tmpMap);
7310 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(unremoveProject_args.class, metaDataMap);
7311 }
7312
7313 public unremoveProject_args() {
7314 }
7315
7316 public unremoveProject_args(
7317 String name)
7318 {
7319 this();
7320 this.name = name;
7321 }
7322
7323
7324
7325
7326 public unremoveProject_args(unremoveProject_args other) {
7327 if (other.isSetName()) {
7328 this.name = other.name;
7329 }
7330 }
7331
7332 public unremoveProject_args deepCopy() {
7333 return new unremoveProject_args(this);
7334 }
7335
7336 @Override
7337 public void clear() {
7338 this.name = null;
7339 }
7340
7341 public String getName() {
7342 return this.name;
7343 }
7344
7345 public unremoveProject_args setName(String name) {
7346 this.name = name;
7347 return this;
7348 }
7349
7350 public void unsetName() {
7351 this.name = null;
7352 }
7353
7354
7355 public boolean isSetName() {
7356 return this.name != null;
7357 }
7358
7359 public void setNameIsSet(boolean value) {
7360 if (!value) {
7361 this.name = null;
7362 }
7363 }
7364
7365 public void setFieldValue(_Fields field, Object value) {
7366 switch (field) {
7367 case NAME:
7368 if (value == null) {
7369 unsetName();
7370 } else {
7371 setName((String)value);
7372 }
7373 break;
7374
7375 }
7376 }
7377
7378 public Object getFieldValue(_Fields field) {
7379 switch (field) {
7380 case NAME:
7381 return getName();
7382
7383 }
7384 throw new IllegalStateException();
7385 }
7386
7387
7388 public boolean isSet(_Fields field) {
7389 if (field == null) {
7390 throw new IllegalArgumentException();
7391 }
7392
7393 switch (field) {
7394 case NAME:
7395 return isSetName();
7396 }
7397 throw new IllegalStateException();
7398 }
7399
7400 @Override
7401 public boolean equals(Object that) {
7402 if (that == null)
7403 return false;
7404 if (that instanceof unremoveProject_args)
7405 return this.equals((unremoveProject_args)that);
7406 return false;
7407 }
7408
7409 public boolean equals(unremoveProject_args that) {
7410 if (that == null)
7411 return false;
7412
7413 boolean this_present_name = true && this.isSetName();
7414 boolean that_present_name = true && that.isSetName();
7415 if (this_present_name || that_present_name) {
7416 if (!(this_present_name && that_present_name))
7417 return false;
7418 if (!this.name.equals(that.name))
7419 return false;
7420 }
7421
7422 return true;
7423 }
7424
7425 @Override
7426 public int hashCode() {
7427 List<Object> list = new ArrayList<Object>();
7428
7429 boolean present_name = true && (isSetName());
7430 list.add(present_name);
7431 if (present_name)
7432 list.add(name);
7433
7434 return list.hashCode();
7435 }
7436
7437 @Override
7438 public int compareTo(unremoveProject_args other) {
7439 if (!getClass().equals(other.getClass())) {
7440 return getClass().getName().compareTo(other.getClass().getName());
7441 }
7442
7443 int lastComparison = 0;
7444
7445 lastComparison = Boolean.valueOf(isSetName()).compareTo(other.isSetName());
7446 if (lastComparison != 0) {
7447 return lastComparison;
7448 }
7449 if (isSetName()) {
7450 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, other.name);
7451 if (lastComparison != 0) {
7452 return lastComparison;
7453 }
7454 }
7455 return 0;
7456 }
7457
7458 public _Fields fieldForId(int fieldId) {
7459 return _Fields.findByThriftId(fieldId);
7460 }
7461
7462 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7463 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
7464 }
7465
7466 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7467 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
7468 }
7469
7470 @Override
7471 public String toString() {
7472 StringBuilder sb = new StringBuilder("unremoveProject_args(");
7473 boolean first = true;
7474
7475 sb.append("name:");
7476 if (this.name == null) {
7477 sb.append("null");
7478 } else {
7479 sb.append(this.name);
7480 }
7481 first = false;
7482 sb.append(")");
7483 return sb.toString();
7484 }
7485
7486 public void validate() throws org.apache.thrift.TException {
7487
7488
7489 }
7490
7491 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7492 try {
7493 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7494 } catch (org.apache.thrift.TException te) {
7495 throw new java.io.IOException(te);
7496 }
7497 }
7498
7499 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7500 try {
7501 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7502 } catch (org.apache.thrift.TException te) {
7503 throw new java.io.IOException(te);
7504 }
7505 }
7506
7507 private static class unremoveProject_argsStandardSchemeFactory implements SchemeFactory {
7508 public unremoveProject_argsStandardScheme getScheme() {
7509 return new unremoveProject_argsStandardScheme();
7510 }
7511 }
7512
7513 private static class unremoveProject_argsStandardScheme extends StandardScheme<unremoveProject_args> {
7514
7515 public void read(org.apache.thrift.protocol.TProtocol iprot, unremoveProject_args struct) throws org.apache.thrift.TException {
7516 org.apache.thrift.protocol.TField schemeField;
7517 iprot.readStructBegin();
7518 while (true)
7519 {
7520 schemeField = iprot.readFieldBegin();
7521 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
7522 break;
7523 }
7524 switch (schemeField.id) {
7525 case 1:
7526 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
7527 struct.name = iprot.readString();
7528 struct.setNameIsSet(true);
7529 } else {
7530 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
7531 }
7532 break;
7533 default:
7534 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
7535 }
7536 iprot.readFieldEnd();
7537 }
7538 iprot.readStructEnd();
7539
7540
7541 struct.validate();
7542 }
7543
7544 public void write(org.apache.thrift.protocol.TProtocol oprot, unremoveProject_args struct) throws org.apache.thrift.TException {
7545 struct.validate();
7546
7547 oprot.writeStructBegin(STRUCT_DESC);
7548 if (struct.name != null) {
7549 oprot.writeFieldBegin(NAME_FIELD_DESC);
7550 oprot.writeString(struct.name);
7551 oprot.writeFieldEnd();
7552 }
7553 oprot.writeFieldStop();
7554 oprot.writeStructEnd();
7555 }
7556
7557 }
7558
7559 private static class unremoveProject_argsTupleSchemeFactory implements SchemeFactory {
7560 public unremoveProject_argsTupleScheme getScheme() {
7561 return new unremoveProject_argsTupleScheme();
7562 }
7563 }
7564
7565 private static class unremoveProject_argsTupleScheme extends TupleScheme<unremoveProject_args> {
7566
7567 @Override
7568 public void write(org.apache.thrift.protocol.TProtocol prot, unremoveProject_args struct) throws org.apache.thrift.TException {
7569 TTupleProtocol oprot = (TTupleProtocol) prot;
7570 BitSet optionals = new BitSet();
7571 if (struct.isSetName()) {
7572 optionals.set(0);
7573 }
7574 oprot.writeBitSet(optionals, 1);
7575 if (struct.isSetName()) {
7576 oprot.writeString(struct.name);
7577 }
7578 }
7579
7580 @Override
7581 public void read(org.apache.thrift.protocol.TProtocol prot, unremoveProject_args struct) throws org.apache.thrift.TException {
7582 TTupleProtocol iprot = (TTupleProtocol) prot;
7583 BitSet incoming = iprot.readBitSet(1);
7584 if (incoming.get(0)) {
7585 struct.name = iprot.readString();
7586 struct.setNameIsSet(true);
7587 }
7588 }
7589 }
7590
7591 }
7592
7593 public static class unremoveProject_result implements org.apache.thrift.TBase<unremoveProject_result, unremoveProject_result._Fields>, java.io.Serializable, Cloneable, Comparable<unremoveProject_result> {
7594 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("unremoveProject_result");
7595
7596 private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
7597
7598 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
7599 static {
7600 schemes.put(StandardScheme.class, new unremoveProject_resultStandardSchemeFactory());
7601 schemes.put(TupleScheme.class, new unremoveProject_resultTupleSchemeFactory());
7602 }
7603
7604 public CentralDogmaException e;
7605
7606
7607 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7608 E((short)1, "e");
7609
7610 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7611
7612 static {
7613 for (_Fields field : EnumSet.allOf(_Fields.class)) {
7614 byName.put(field.getFieldName(), field);
7615 }
7616 }
7617
7618
7619
7620
7621 public static _Fields findByThriftId(int fieldId) {
7622 switch(fieldId) {
7623 case 1:
7624 return E;
7625 default:
7626 return null;
7627 }
7628 }
7629
7630
7631
7632
7633
7634 public static _Fields findByThriftIdOrThrow(int fieldId) {
7635 _Fields fields = findByThriftId(fieldId);
7636 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7637 return fields;
7638 }
7639
7640
7641
7642
7643 public static _Fields findByName(String name) {
7644 return byName.get(name);
7645 }
7646
7647 private final short _thriftId;
7648 private final String _fieldName;
7649
7650 _Fields(short thriftId, String fieldName) {
7651 _thriftId = thriftId;
7652 _fieldName = fieldName;
7653 }
7654
7655 public short getThriftFieldId() {
7656 return _thriftId;
7657 }
7658
7659 public String getFieldName() {
7660 return _fieldName;
7661 }
7662 }
7663
7664
7665 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7666 static {
7667 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7668 tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
7669 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
7670 metaDataMap = Collections.unmodifiableMap(tmpMap);
7671 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(unremoveProject_result.class, metaDataMap);
7672 }
7673
7674 public unremoveProject_result() {
7675 }
7676
7677 public unremoveProject_result(
7678 CentralDogmaException e)
7679 {
7680 this();
7681 this.e = e;
7682 }
7683
7684
7685
7686
7687 public unremoveProject_result(unremoveProject_result other) {
7688 if (other.isSetE()) {
7689 this.e = new CentralDogmaException(other.e);
7690 }
7691 }
7692
7693 public unremoveProject_result deepCopy() {
7694 return new unremoveProject_result(this);
7695 }
7696
7697 @Override
7698 public void clear() {
7699 this.e = null;
7700 }
7701
7702 public CentralDogmaException getE() {
7703 return this.e;
7704 }
7705
7706 public unremoveProject_result setE(CentralDogmaException e) {
7707 this.e = e;
7708 return this;
7709 }
7710
7711 public void unsetE() {
7712 this.e = null;
7713 }
7714
7715
7716 public boolean isSetE() {
7717 return this.e != null;
7718 }
7719
7720 public void setEIsSet(boolean value) {
7721 if (!value) {
7722 this.e = null;
7723 }
7724 }
7725
7726 public void setFieldValue(_Fields field, Object value) {
7727 switch (field) {
7728 case E:
7729 if (value == null) {
7730 unsetE();
7731 } else {
7732 setE((CentralDogmaException)value);
7733 }
7734 break;
7735
7736 }
7737 }
7738
7739 public Object getFieldValue(_Fields field) {
7740 switch (field) {
7741 case E:
7742 return getE();
7743
7744 }
7745 throw new IllegalStateException();
7746 }
7747
7748
7749 public boolean isSet(_Fields field) {
7750 if (field == null) {
7751 throw new IllegalArgumentException();
7752 }
7753
7754 switch (field) {
7755 case E:
7756 return isSetE();
7757 }
7758 throw new IllegalStateException();
7759 }
7760
7761 @Override
7762 public boolean equals(Object that) {
7763 if (that == null)
7764 return false;
7765 if (that instanceof unremoveProject_result)
7766 return this.equals((unremoveProject_result)that);
7767 return false;
7768 }
7769
7770 public boolean equals(unremoveProject_result that) {
7771 if (that == null)
7772 return false;
7773
7774 boolean this_present_e = true && this.isSetE();
7775 boolean that_present_e = true && that.isSetE();
7776 if (this_present_e || that_present_e) {
7777 if (!(this_present_e && that_present_e))
7778 return false;
7779 if (!this.e.equals(that.e))
7780 return false;
7781 }
7782
7783 return true;
7784 }
7785
7786 @Override
7787 public int hashCode() {
7788 List<Object> list = new ArrayList<Object>();
7789
7790 boolean present_e = true && (isSetE());
7791 list.add(present_e);
7792 if (present_e)
7793 list.add(e);
7794
7795 return list.hashCode();
7796 }
7797
7798 @Override
7799 public int compareTo(unremoveProject_result other) {
7800 if (!getClass().equals(other.getClass())) {
7801 return getClass().getName().compareTo(other.getClass().getName());
7802 }
7803
7804 int lastComparison = 0;
7805
7806 lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE());
7807 if (lastComparison != 0) {
7808 return lastComparison;
7809 }
7810 if (isSetE()) {
7811 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e);
7812 if (lastComparison != 0) {
7813 return lastComparison;
7814 }
7815 }
7816 return 0;
7817 }
7818
7819 public _Fields fieldForId(int fieldId) {
7820 return _Fields.findByThriftId(fieldId);
7821 }
7822
7823 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7824 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
7825 }
7826
7827 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7828 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
7829 }
7830
7831 @Override
7832 public String toString() {
7833 StringBuilder sb = new StringBuilder("unremoveProject_result(");
7834 boolean first = true;
7835
7836 sb.append("e:");
7837 if (this.e == null) {
7838 sb.append("null");
7839 } else {
7840 sb.append(this.e);
7841 }
7842 first = false;
7843 sb.append(")");
7844 return sb.toString();
7845 }
7846
7847 public void validate() throws org.apache.thrift.TException {
7848
7849
7850 }
7851
7852 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7853 try {
7854 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7855 } catch (org.apache.thrift.TException te) {
7856 throw new java.io.IOException(te);
7857 }
7858 }
7859
7860 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7861 try {
7862 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7863 } catch (org.apache.thrift.TException te) {
7864 throw new java.io.IOException(te);
7865 }
7866 }
7867
7868 private static class unremoveProject_resultStandardSchemeFactory implements SchemeFactory {
7869 public unremoveProject_resultStandardScheme getScheme() {
7870 return new unremoveProject_resultStandardScheme();
7871 }
7872 }
7873
7874 private static class unremoveProject_resultStandardScheme extends StandardScheme<unremoveProject_result> {
7875
7876 public void read(org.apache.thrift.protocol.TProtocol iprot, unremoveProject_result struct) throws org.apache.thrift.TException {
7877 org.apache.thrift.protocol.TField schemeField;
7878 iprot.readStructBegin();
7879 while (true)
7880 {
7881 schemeField = iprot.readFieldBegin();
7882 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
7883 break;
7884 }
7885 switch (schemeField.id) {
7886 case 1:
7887 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
7888 struct.e = new CentralDogmaException();
7889 struct.e.read(iprot);
7890 struct.setEIsSet(true);
7891 } else {
7892 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
7893 }
7894 break;
7895 default:
7896 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
7897 }
7898 iprot.readFieldEnd();
7899 }
7900 iprot.readStructEnd();
7901
7902
7903 struct.validate();
7904 }
7905
7906 public void write(org.apache.thrift.protocol.TProtocol oprot, unremoveProject_result struct) throws org.apache.thrift.TException {
7907 struct.validate();
7908
7909 oprot.writeStructBegin(STRUCT_DESC);
7910 if (struct.e != null) {
7911 oprot.writeFieldBegin(E_FIELD_DESC);
7912 struct.e.write(oprot);
7913 oprot.writeFieldEnd();
7914 }
7915 oprot.writeFieldStop();
7916 oprot.writeStructEnd();
7917 }
7918
7919 }
7920
7921 private static class unremoveProject_resultTupleSchemeFactory implements SchemeFactory {
7922 public unremoveProject_resultTupleScheme getScheme() {
7923 return new unremoveProject_resultTupleScheme();
7924 }
7925 }
7926
7927 private static class unremoveProject_resultTupleScheme extends TupleScheme<unremoveProject_result> {
7928
7929 @Override
7930 public void write(org.apache.thrift.protocol.TProtocol prot, unremoveProject_result struct) throws org.apache.thrift.TException {
7931 TTupleProtocol oprot = (TTupleProtocol) prot;
7932 BitSet optionals = new BitSet();
7933 if (struct.isSetE()) {
7934 optionals.set(0);
7935 }
7936 oprot.writeBitSet(optionals, 1);
7937 if (struct.isSetE()) {
7938 struct.e.write(oprot);
7939 }
7940 }
7941
7942 @Override
7943 public void read(org.apache.thrift.protocol.TProtocol prot, unremoveProject_result struct) throws org.apache.thrift.TException {
7944 TTupleProtocol iprot = (TTupleProtocol) prot;
7945 BitSet incoming = iprot.readBitSet(1);
7946 if (incoming.get(0)) {
7947 struct.e = new CentralDogmaException();
7948 struct.e.read(iprot);
7949 struct.setEIsSet(true);
7950 }
7951 }
7952 }
7953
7954 }
7955
7956 public static class listProjects_args implements org.apache.thrift.TBase<listProjects_args, listProjects_args._Fields>, java.io.Serializable, Cloneable, Comparable<listProjects_args> {
7957 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("listProjects_args");
7958
7959
7960 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
7961 static {
7962 schemes.put(StandardScheme.class, new listProjects_argsStandardSchemeFactory());
7963 schemes.put(TupleScheme.class, new listProjects_argsTupleSchemeFactory());
7964 }
7965
7966
7967
7968 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7969 ;
7970
7971 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7972
7973 static {
7974 for (_Fields field : EnumSet.allOf(_Fields.class)) {
7975 byName.put(field.getFieldName(), field);
7976 }
7977 }
7978
7979
7980
7981
7982 public static _Fields findByThriftId(int fieldId) {
7983 switch(fieldId) {
7984 default:
7985 return null;
7986 }
7987 }
7988
7989
7990
7991
7992
7993 public static _Fields findByThriftIdOrThrow(int fieldId) {
7994 _Fields fields = findByThriftId(fieldId);
7995 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7996 return fields;
7997 }
7998
7999
8000
8001
8002 public static _Fields findByName(String name) {
8003 return byName.get(name);
8004 }
8005
8006 private final short _thriftId;
8007 private final String _fieldName;
8008
8009 _Fields(short thriftId, String fieldName) {
8010 _thriftId = thriftId;
8011 _fieldName = fieldName;
8012 }
8013
8014 public short getThriftFieldId() {
8015 return _thriftId;
8016 }
8017
8018 public String getFieldName() {
8019 return _fieldName;
8020 }
8021 }
8022 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8023 static {
8024 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8025 metaDataMap = Collections.unmodifiableMap(tmpMap);
8026 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(listProjects_args.class, metaDataMap);
8027 }
8028
8029 public listProjects_args() {
8030 }
8031
8032
8033
8034
8035 public listProjects_args(listProjects_args other) {
8036 }
8037
8038 public listProjects_args deepCopy() {
8039 return new listProjects_args(this);
8040 }
8041
8042 @Override
8043 public void clear() {
8044 }
8045
8046 public void setFieldValue(_Fields field, Object value) {
8047 switch (field) {
8048 }
8049 }
8050
8051 public Object getFieldValue(_Fields field) {
8052 switch (field) {
8053 }
8054 throw new IllegalStateException();
8055 }
8056
8057
8058 public boolean isSet(_Fields field) {
8059 if (field == null) {
8060 throw new IllegalArgumentException();
8061 }
8062
8063 switch (field) {
8064 }
8065 throw new IllegalStateException();
8066 }
8067
8068 @Override
8069 public boolean equals(Object that) {
8070 if (that == null)
8071 return false;
8072 if (that instanceof listProjects_args)
8073 return this.equals((listProjects_args)that);
8074 return false;
8075 }
8076
8077 public boolean equals(listProjects_args that) {
8078 if (that == null)
8079 return false;
8080
8081 return true;
8082 }
8083
8084 @Override
8085 public int hashCode() {
8086 List<Object> list = new ArrayList<Object>();
8087
8088 return list.hashCode();
8089 }
8090
8091 @Override
8092 public int compareTo(listProjects_args other) {
8093 if (!getClass().equals(other.getClass())) {
8094 return getClass().getName().compareTo(other.getClass().getName());
8095 }
8096
8097 int lastComparison = 0;
8098
8099 return 0;
8100 }
8101
8102 public _Fields fieldForId(int fieldId) {
8103 return _Fields.findByThriftId(fieldId);
8104 }
8105
8106 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8107 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
8108 }
8109
8110 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8111 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
8112 }
8113
8114 @Override
8115 public String toString() {
8116 StringBuilder sb = new StringBuilder("listProjects_args(");
8117 boolean first = true;
8118
8119 sb.append(")");
8120 return sb.toString();
8121 }
8122
8123 public void validate() throws org.apache.thrift.TException {
8124
8125
8126 }
8127
8128 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8129 try {
8130 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8131 } catch (org.apache.thrift.TException te) {
8132 throw new java.io.IOException(te);
8133 }
8134 }
8135
8136 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8137 try {
8138 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8139 } catch (org.apache.thrift.TException te) {
8140 throw new java.io.IOException(te);
8141 }
8142 }
8143
8144 private static class listProjects_argsStandardSchemeFactory implements SchemeFactory {
8145 public listProjects_argsStandardScheme getScheme() {
8146 return new listProjects_argsStandardScheme();
8147 }
8148 }
8149
8150 private static class listProjects_argsStandardScheme extends StandardScheme<listProjects_args> {
8151
8152 public void read(org.apache.thrift.protocol.TProtocol iprot, listProjects_args struct) throws org.apache.thrift.TException {
8153 org.apache.thrift.protocol.TField schemeField;
8154 iprot.readStructBegin();
8155 while (true)
8156 {
8157 schemeField = iprot.readFieldBegin();
8158 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
8159 break;
8160 }
8161 switch (schemeField.id) {
8162 default:
8163 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
8164 }
8165 iprot.readFieldEnd();
8166 }
8167 iprot.readStructEnd();
8168
8169
8170 struct.validate();
8171 }
8172
8173 public void write(org.apache.thrift.protocol.TProtocol oprot, listProjects_args struct) throws org.apache.thrift.TException {
8174 struct.validate();
8175
8176 oprot.writeStructBegin(STRUCT_DESC);
8177 oprot.writeFieldStop();
8178 oprot.writeStructEnd();
8179 }
8180
8181 }
8182
8183 private static class listProjects_argsTupleSchemeFactory implements SchemeFactory {
8184 public listProjects_argsTupleScheme getScheme() {
8185 return new listProjects_argsTupleScheme();
8186 }
8187 }
8188
8189 private static class listProjects_argsTupleScheme extends TupleScheme<listProjects_args> {
8190
8191 @Override
8192 public void write(org.apache.thrift.protocol.TProtocol prot, listProjects_args struct) throws org.apache.thrift.TException {
8193 TTupleProtocol oprot = (TTupleProtocol) prot;
8194 }
8195
8196 @Override
8197 public void read(org.apache.thrift.protocol.TProtocol prot, listProjects_args struct) throws org.apache.thrift.TException {
8198 TTupleProtocol iprot = (TTupleProtocol) prot;
8199 }
8200 }
8201
8202 }
8203
8204 public static class listProjects_result implements org.apache.thrift.TBase<listProjects_result, listProjects_result._Fields>, java.io.Serializable, Cloneable, Comparable<listProjects_result> {
8205 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("listProjects_result");
8206
8207 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
8208 private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
8209
8210 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
8211 static {
8212 schemes.put(StandardScheme.class, new listProjects_resultStandardSchemeFactory());
8213 schemes.put(TupleScheme.class, new listProjects_resultTupleSchemeFactory());
8214 }
8215
8216 public List<Project> success;
8217 public CentralDogmaException e;
8218
8219
8220 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8221 SUCCESS((short)0, "success"),
8222 E((short)1, "e");
8223
8224 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8225
8226 static {
8227 for (_Fields field : EnumSet.allOf(_Fields.class)) {
8228 byName.put(field.getFieldName(), field);
8229 }
8230 }
8231
8232
8233
8234
8235 public static _Fields findByThriftId(int fieldId) {
8236 switch(fieldId) {
8237 case 0:
8238 return SUCCESS;
8239 case 1:
8240 return E;
8241 default:
8242 return null;
8243 }
8244 }
8245
8246
8247
8248
8249
8250 public static _Fields findByThriftIdOrThrow(int fieldId) {
8251 _Fields fields = findByThriftId(fieldId);
8252 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8253 return fields;
8254 }
8255
8256
8257
8258
8259 public static _Fields findByName(String name) {
8260 return byName.get(name);
8261 }
8262
8263 private final short _thriftId;
8264 private final String _fieldName;
8265
8266 _Fields(short thriftId, String fieldName) {
8267 _thriftId = thriftId;
8268 _fieldName = fieldName;
8269 }
8270
8271 public short getThriftFieldId() {
8272 return _thriftId;
8273 }
8274
8275 public String getFieldName() {
8276 return _fieldName;
8277 }
8278 }
8279
8280
8281 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8282 static {
8283 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8284 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
8285 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
8286 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Project.class))));
8287 tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
8288 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
8289 metaDataMap = Collections.unmodifiableMap(tmpMap);
8290 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(listProjects_result.class, metaDataMap);
8291 }
8292
8293 public listProjects_result() {
8294 }
8295
8296 public listProjects_result(
8297 List<Project> success,
8298 CentralDogmaException e)
8299 {
8300 this();
8301 this.success = success;
8302 this.e = e;
8303 }
8304
8305
8306
8307
8308 public listProjects_result(listProjects_result other) {
8309 if (other.isSetSuccess()) {
8310 List<Project> __this__success = new ArrayList<Project>(other.success.size());
8311 for (Project other_element : other.success) {
8312 __this__success.add(new Project(other_element));
8313 }
8314 this.success = __this__success;
8315 }
8316 if (other.isSetE()) {
8317 this.e = new CentralDogmaException(other.e);
8318 }
8319 }
8320
8321 public listProjects_result deepCopy() {
8322 return new listProjects_result(this);
8323 }
8324
8325 @Override
8326 public void clear() {
8327 this.success = null;
8328 this.e = null;
8329 }
8330
8331 public int getSuccessSize() {
8332 return (this.success == null) ? 0 : this.success.size();
8333 }
8334
8335 public java.util.Iterator<Project> getSuccessIterator() {
8336 return (this.success == null) ? null : this.success.iterator();
8337 }
8338
8339 public void addToSuccess(Project elem) {
8340 if (this.success == null) {
8341 this.success = new ArrayList<Project>();
8342 }
8343 this.success.add(elem);
8344 }
8345
8346 public List<Project> getSuccess() {
8347 return this.success;
8348 }
8349
8350 public listProjects_result setSuccess(List<Project> success) {
8351 this.success = success;
8352 return this;
8353 }
8354
8355 public void unsetSuccess() {
8356 this.success = null;
8357 }
8358
8359
8360 public boolean isSetSuccess() {
8361 return this.success != null;
8362 }
8363
8364 public void setSuccessIsSet(boolean value) {
8365 if (!value) {
8366 this.success = null;
8367 }
8368 }
8369
8370 public CentralDogmaException getE() {
8371 return this.e;
8372 }
8373
8374 public listProjects_result setE(CentralDogmaException e) {
8375 this.e = e;
8376 return this;
8377 }
8378
8379 public void unsetE() {
8380 this.e = null;
8381 }
8382
8383
8384 public boolean isSetE() {
8385 return this.e != null;
8386 }
8387
8388 public void setEIsSet(boolean value) {
8389 if (!value) {
8390 this.e = null;
8391 }
8392 }
8393
8394 public void setFieldValue(_Fields field, Object value) {
8395 switch (field) {
8396 case SUCCESS:
8397 if (value == null) {
8398 unsetSuccess();
8399 } else {
8400 setSuccess((List<Project>)value);
8401 }
8402 break;
8403
8404 case E:
8405 if (value == null) {
8406 unsetE();
8407 } else {
8408 setE((CentralDogmaException)value);
8409 }
8410 break;
8411
8412 }
8413 }
8414
8415 public Object getFieldValue(_Fields field) {
8416 switch (field) {
8417 case SUCCESS:
8418 return getSuccess();
8419
8420 case E:
8421 return getE();
8422
8423 }
8424 throw new IllegalStateException();
8425 }
8426
8427
8428 public boolean isSet(_Fields field) {
8429 if (field == null) {
8430 throw new IllegalArgumentException();
8431 }
8432
8433 switch (field) {
8434 case SUCCESS:
8435 return isSetSuccess();
8436 case E:
8437 return isSetE();
8438 }
8439 throw new IllegalStateException();
8440 }
8441
8442 @Override
8443 public boolean equals(Object that) {
8444 if (that == null)
8445 return false;
8446 if (that instanceof listProjects_result)
8447 return this.equals((listProjects_result)that);
8448 return false;
8449 }
8450
8451 public boolean equals(listProjects_result that) {
8452 if (that == null)
8453 return false;
8454
8455 boolean this_present_success = true && this.isSetSuccess();
8456 boolean that_present_success = true && that.isSetSuccess();
8457 if (this_present_success || that_present_success) {
8458 if (!(this_present_success && that_present_success))
8459 return false;
8460 if (!this.success.equals(that.success))
8461 return false;
8462 }
8463
8464 boolean this_present_e = true && this.isSetE();
8465 boolean that_present_e = true && that.isSetE();
8466 if (this_present_e || that_present_e) {
8467 if (!(this_present_e && that_present_e))
8468 return false;
8469 if (!this.e.equals(that.e))
8470 return false;
8471 }
8472
8473 return true;
8474 }
8475
8476 @Override
8477 public int hashCode() {
8478 List<Object> list = new ArrayList<Object>();
8479
8480 boolean present_success = true && (isSetSuccess());
8481 list.add(present_success);
8482 if (present_success)
8483 list.add(success);
8484
8485 boolean present_e = true && (isSetE());
8486 list.add(present_e);
8487 if (present_e)
8488 list.add(e);
8489
8490 return list.hashCode();
8491 }
8492
8493 @Override
8494 public int compareTo(listProjects_result other) {
8495 if (!getClass().equals(other.getClass())) {
8496 return getClass().getName().compareTo(other.getClass().getName());
8497 }
8498
8499 int lastComparison = 0;
8500
8501 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
8502 if (lastComparison != 0) {
8503 return lastComparison;
8504 }
8505 if (isSetSuccess()) {
8506 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
8507 if (lastComparison != 0) {
8508 return lastComparison;
8509 }
8510 }
8511 lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE());
8512 if (lastComparison != 0) {
8513 return lastComparison;
8514 }
8515 if (isSetE()) {
8516 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e);
8517 if (lastComparison != 0) {
8518 return lastComparison;
8519 }
8520 }
8521 return 0;
8522 }
8523
8524 public _Fields fieldForId(int fieldId) {
8525 return _Fields.findByThriftId(fieldId);
8526 }
8527
8528 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8529 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
8530 }
8531
8532 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8533 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
8534 }
8535
8536 @Override
8537 public String toString() {
8538 StringBuilder sb = new StringBuilder("listProjects_result(");
8539 boolean first = true;
8540
8541 sb.append("success:");
8542 if (this.success == null) {
8543 sb.append("null");
8544 } else {
8545 sb.append(this.success);
8546 }
8547 first = false;
8548 if (!first) sb.append(", ");
8549 sb.append("e:");
8550 if (this.e == null) {
8551 sb.append("null");
8552 } else {
8553 sb.append(this.e);
8554 }
8555 first = false;
8556 sb.append(")");
8557 return sb.toString();
8558 }
8559
8560 public void validate() throws org.apache.thrift.TException {
8561
8562
8563 }
8564
8565 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8566 try {
8567 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8568 } catch (org.apache.thrift.TException te) {
8569 throw new java.io.IOException(te);
8570 }
8571 }
8572
8573 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8574 try {
8575 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8576 } catch (org.apache.thrift.TException te) {
8577 throw new java.io.IOException(te);
8578 }
8579 }
8580
8581 private static class listProjects_resultStandardSchemeFactory implements SchemeFactory {
8582 public listProjects_resultStandardScheme getScheme() {
8583 return new listProjects_resultStandardScheme();
8584 }
8585 }
8586
8587 private static class listProjects_resultStandardScheme extends StandardScheme<listProjects_result> {
8588
8589 public void read(org.apache.thrift.protocol.TProtocol iprot, listProjects_result struct) throws org.apache.thrift.TException {
8590 org.apache.thrift.protocol.TField schemeField;
8591 iprot.readStructBegin();
8592 while (true)
8593 {
8594 schemeField = iprot.readFieldBegin();
8595 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
8596 break;
8597 }
8598 switch (schemeField.id) {
8599 case 0:
8600 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
8601 {
8602 org.apache.thrift.protocol.TList _list72 = iprot.readListBegin();
8603 struct.success = new ArrayList<Project>(_list72.size);
8604 Project _elem73;
8605 for (int _i74 = 0; _i74 < _list72.size; ++_i74)
8606 {
8607 _elem73 = new Project();
8608 _elem73.read(iprot);
8609 struct.success.add(_elem73);
8610 }
8611 iprot.readListEnd();
8612 }
8613 struct.setSuccessIsSet(true);
8614 } else {
8615 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
8616 }
8617 break;
8618 case 1:
8619 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
8620 struct.e = new CentralDogmaException();
8621 struct.e.read(iprot);
8622 struct.setEIsSet(true);
8623 } else {
8624 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
8625 }
8626 break;
8627 default:
8628 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
8629 }
8630 iprot.readFieldEnd();
8631 }
8632 iprot.readStructEnd();
8633
8634
8635 struct.validate();
8636 }
8637
8638 public void write(org.apache.thrift.protocol.TProtocol oprot, listProjects_result struct) throws org.apache.thrift.TException {
8639 struct.validate();
8640
8641 oprot.writeStructBegin(STRUCT_DESC);
8642 if (struct.success != null) {
8643 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
8644 {
8645 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
8646 for (Project _iter75 : struct.success)
8647 {
8648 _iter75.write(oprot);
8649 }
8650 oprot.writeListEnd();
8651 }
8652 oprot.writeFieldEnd();
8653 }
8654 if (struct.e != null) {
8655 oprot.writeFieldBegin(E_FIELD_DESC);
8656 struct.e.write(oprot);
8657 oprot.writeFieldEnd();
8658 }
8659 oprot.writeFieldStop();
8660 oprot.writeStructEnd();
8661 }
8662
8663 }
8664
8665 private static class listProjects_resultTupleSchemeFactory implements SchemeFactory {
8666 public listProjects_resultTupleScheme getScheme() {
8667 return new listProjects_resultTupleScheme();
8668 }
8669 }
8670
8671 private static class listProjects_resultTupleScheme extends TupleScheme<listProjects_result> {
8672
8673 @Override
8674 public void write(org.apache.thrift.protocol.TProtocol prot, listProjects_result struct) throws org.apache.thrift.TException {
8675 TTupleProtocol oprot = (TTupleProtocol) prot;
8676 BitSet optionals = new BitSet();
8677 if (struct.isSetSuccess()) {
8678 optionals.set(0);
8679 }
8680 if (struct.isSetE()) {
8681 optionals.set(1);
8682 }
8683 oprot.writeBitSet(optionals, 2);
8684 if (struct.isSetSuccess()) {
8685 {
8686 oprot.writeI32(struct.success.size());
8687 for (Project _iter76 : struct.success)
8688 {
8689 _iter76.write(oprot);
8690 }
8691 }
8692 }
8693 if (struct.isSetE()) {
8694 struct.e.write(oprot);
8695 }
8696 }
8697
8698 @Override
8699 public void read(org.apache.thrift.protocol.TProtocol prot, listProjects_result struct) throws org.apache.thrift.TException {
8700 TTupleProtocol iprot = (TTupleProtocol) prot;
8701 BitSet incoming = iprot.readBitSet(2);
8702 if (incoming.get(0)) {
8703 {
8704 org.apache.thrift.protocol.TList _list77 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
8705 struct.success = new ArrayList<Project>(_list77.size);
8706 Project _elem78;
8707 for (int _i79 = 0; _i79 < _list77.size; ++_i79)
8708 {
8709 _elem78 = new Project();
8710 _elem78.read(iprot);
8711 struct.success.add(_elem78);
8712 }
8713 }
8714 struct.setSuccessIsSet(true);
8715 }
8716 if (incoming.get(1)) {
8717 struct.e = new CentralDogmaException();
8718 struct.e.read(iprot);
8719 struct.setEIsSet(true);
8720 }
8721 }
8722 }
8723
8724 }
8725
8726 public static class listRemovedProjects_args implements org.apache.thrift.TBase<listRemovedProjects_args, listRemovedProjects_args._Fields>, java.io.Serializable, Cloneable, Comparable<listRemovedProjects_args> {
8727 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("listRemovedProjects_args");
8728
8729
8730 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
8731 static {
8732 schemes.put(StandardScheme.class, new listRemovedProjects_argsStandardSchemeFactory());
8733 schemes.put(TupleScheme.class, new listRemovedProjects_argsTupleSchemeFactory());
8734 }
8735
8736
8737
8738 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8739 ;
8740
8741 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8742
8743 static {
8744 for (_Fields field : EnumSet.allOf(_Fields.class)) {
8745 byName.put(field.getFieldName(), field);
8746 }
8747 }
8748
8749
8750
8751
8752 public static _Fields findByThriftId(int fieldId) {
8753 switch(fieldId) {
8754 default:
8755 return null;
8756 }
8757 }
8758
8759
8760
8761
8762
8763 public static _Fields findByThriftIdOrThrow(int fieldId) {
8764 _Fields fields = findByThriftId(fieldId);
8765 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8766 return fields;
8767 }
8768
8769
8770
8771
8772 public static _Fields findByName(String name) {
8773 return byName.get(name);
8774 }
8775
8776 private final short _thriftId;
8777 private final String _fieldName;
8778
8779 _Fields(short thriftId, String fieldName) {
8780 _thriftId = thriftId;
8781 _fieldName = fieldName;
8782 }
8783
8784 public short getThriftFieldId() {
8785 return _thriftId;
8786 }
8787
8788 public String getFieldName() {
8789 return _fieldName;
8790 }
8791 }
8792 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8793 static {
8794 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8795 metaDataMap = Collections.unmodifiableMap(tmpMap);
8796 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(listRemovedProjects_args.class, metaDataMap);
8797 }
8798
8799 public listRemovedProjects_args() {
8800 }
8801
8802
8803
8804
8805 public listRemovedProjects_args(listRemovedProjects_args other) {
8806 }
8807
8808 public listRemovedProjects_args deepCopy() {
8809 return new listRemovedProjects_args(this);
8810 }
8811
8812 @Override
8813 public void clear() {
8814 }
8815
8816 public void setFieldValue(_Fields field, Object value) {
8817 switch (field) {
8818 }
8819 }
8820
8821 public Object getFieldValue(_Fields field) {
8822 switch (field) {
8823 }
8824 throw new IllegalStateException();
8825 }
8826
8827
8828 public boolean isSet(_Fields field) {
8829 if (field == null) {
8830 throw new IllegalArgumentException();
8831 }
8832
8833 switch (field) {
8834 }
8835 throw new IllegalStateException();
8836 }
8837
8838 @Override
8839 public boolean equals(Object that) {
8840 if (that == null)
8841 return false;
8842 if (that instanceof listRemovedProjects_args)
8843 return this.equals((listRemovedProjects_args)that);
8844 return false;
8845 }
8846
8847 public boolean equals(listRemovedProjects_args that) {
8848 if (that == null)
8849 return false;
8850
8851 return true;
8852 }
8853
8854 @Override
8855 public int hashCode() {
8856 List<Object> list = new ArrayList<Object>();
8857
8858 return list.hashCode();
8859 }
8860
8861 @Override
8862 public int compareTo(listRemovedProjects_args other) {
8863 if (!getClass().equals(other.getClass())) {
8864 return getClass().getName().compareTo(other.getClass().getName());
8865 }
8866
8867 int lastComparison = 0;
8868
8869 return 0;
8870 }
8871
8872 public _Fields fieldForId(int fieldId) {
8873 return _Fields.findByThriftId(fieldId);
8874 }
8875
8876 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8877 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
8878 }
8879
8880 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8881 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
8882 }
8883
8884 @Override
8885 public String toString() {
8886 StringBuilder sb = new StringBuilder("listRemovedProjects_args(");
8887 boolean first = true;
8888
8889 sb.append(")");
8890 return sb.toString();
8891 }
8892
8893 public void validate() throws org.apache.thrift.TException {
8894
8895
8896 }
8897
8898 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8899 try {
8900 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8901 } catch (org.apache.thrift.TException te) {
8902 throw new java.io.IOException(te);
8903 }
8904 }
8905
8906 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8907 try {
8908 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8909 } catch (org.apache.thrift.TException te) {
8910 throw new java.io.IOException(te);
8911 }
8912 }
8913
8914 private static class listRemovedProjects_argsStandardSchemeFactory implements SchemeFactory {
8915 public listRemovedProjects_argsStandardScheme getScheme() {
8916 return new listRemovedProjects_argsStandardScheme();
8917 }
8918 }
8919
8920 private static class listRemovedProjects_argsStandardScheme extends StandardScheme<listRemovedProjects_args> {
8921
8922 public void read(org.apache.thrift.protocol.TProtocol iprot, listRemovedProjects_args struct) throws org.apache.thrift.TException {
8923 org.apache.thrift.protocol.TField schemeField;
8924 iprot.readStructBegin();
8925 while (true)
8926 {
8927 schemeField = iprot.readFieldBegin();
8928 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
8929 break;
8930 }
8931 switch (schemeField.id) {
8932 default:
8933 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
8934 }
8935 iprot.readFieldEnd();
8936 }
8937 iprot.readStructEnd();
8938
8939
8940 struct.validate();
8941 }
8942
8943 public void write(org.apache.thrift.protocol.TProtocol oprot, listRemovedProjects_args struct) throws org.apache.thrift.TException {
8944 struct.validate();
8945
8946 oprot.writeStructBegin(STRUCT_DESC);
8947 oprot.writeFieldStop();
8948 oprot.writeStructEnd();
8949 }
8950
8951 }
8952
8953 private static class listRemovedProjects_argsTupleSchemeFactory implements SchemeFactory {
8954 public listRemovedProjects_argsTupleScheme getScheme() {
8955 return new listRemovedProjects_argsTupleScheme();
8956 }
8957 }
8958
8959 private static class listRemovedProjects_argsTupleScheme extends TupleScheme<listRemovedProjects_args> {
8960
8961 @Override
8962 public void write(org.apache.thrift.protocol.TProtocol prot, listRemovedProjects_args struct) throws org.apache.thrift.TException {
8963 TTupleProtocol oprot = (TTupleProtocol) prot;
8964 }
8965
8966 @Override
8967 public void read(org.apache.thrift.protocol.TProtocol prot, listRemovedProjects_args struct) throws org.apache.thrift.TException {
8968 TTupleProtocol iprot = (TTupleProtocol) prot;
8969 }
8970 }
8971
8972 }
8973
8974 public static class listRemovedProjects_result implements org.apache.thrift.TBase<listRemovedProjects_result, listRemovedProjects_result._Fields>, java.io.Serializable, Cloneable, Comparable<listRemovedProjects_result> {
8975 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("listRemovedProjects_result");
8976
8977 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.SET, (short)0);
8978 private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
8979
8980 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
8981 static {
8982 schemes.put(StandardScheme.class, new listRemovedProjects_resultStandardSchemeFactory());
8983 schemes.put(TupleScheme.class, new listRemovedProjects_resultTupleSchemeFactory());
8984 }
8985
8986 public Set<String> success;
8987 public CentralDogmaException e;
8988
8989
8990 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8991 SUCCESS((short)0, "success"),
8992 E((short)1, "e");
8993
8994 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8995
8996 static {
8997 for (_Fields field : EnumSet.allOf(_Fields.class)) {
8998 byName.put(field.getFieldName(), field);
8999 }
9000 }
9001
9002
9003
9004
9005 public static _Fields findByThriftId(int fieldId) {
9006 switch(fieldId) {
9007 case 0:
9008 return SUCCESS;
9009 case 1:
9010 return E;
9011 default:
9012 return null;
9013 }
9014 }
9015
9016
9017
9018
9019
9020 public static _Fields findByThriftIdOrThrow(int fieldId) {
9021 _Fields fields = findByThriftId(fieldId);
9022 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9023 return fields;
9024 }
9025
9026
9027
9028
9029 public static _Fields findByName(String name) {
9030 return byName.get(name);
9031 }
9032
9033 private final short _thriftId;
9034 private final String _fieldName;
9035
9036 _Fields(short thriftId, String fieldName) {
9037 _thriftId = thriftId;
9038 _fieldName = fieldName;
9039 }
9040
9041 public short getThriftFieldId() {
9042 return _thriftId;
9043 }
9044
9045 public String getFieldName() {
9046 return _fieldName;
9047 }
9048 }
9049
9050
9051 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9052 static {
9053 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9054 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
9055 new org.apache.thrift.meta_data.SetMetaData(org.apache.thrift.protocol.TType.SET,
9056 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
9057 tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
9058 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
9059 metaDataMap = Collections.unmodifiableMap(tmpMap);
9060 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(listRemovedProjects_result.class, metaDataMap);
9061 }
9062
9063 public listRemovedProjects_result() {
9064 }
9065
9066 public listRemovedProjects_result(
9067 Set<String> success,
9068 CentralDogmaException e)
9069 {
9070 this();
9071 this.success = success;
9072 this.e = e;
9073 }
9074
9075
9076
9077
9078 public listRemovedProjects_result(listRemovedProjects_result other) {
9079 if (other.isSetSuccess()) {
9080 Set<String> __this__success = new HashSet<String>(other.success);
9081 this.success = __this__success;
9082 }
9083 if (other.isSetE()) {
9084 this.e = new CentralDogmaException(other.e);
9085 }
9086 }
9087
9088 public listRemovedProjects_result deepCopy() {
9089 return new listRemovedProjects_result(this);
9090 }
9091
9092 @Override
9093 public void clear() {
9094 this.success = null;
9095 this.e = null;
9096 }
9097
9098 public int getSuccessSize() {
9099 return (this.success == null) ? 0 : this.success.size();
9100 }
9101
9102 public java.util.Iterator<String> getSuccessIterator() {
9103 return (this.success == null) ? null : this.success.iterator();
9104 }
9105
9106 public void addToSuccess(String elem) {
9107 if (this.success == null) {
9108 this.success = new HashSet<String>();
9109 }
9110 this.success.add(elem);
9111 }
9112
9113 public Set<String> getSuccess() {
9114 return this.success;
9115 }
9116
9117 public listRemovedProjects_result setSuccess(Set<String> success) {
9118 this.success = success;
9119 return this;
9120 }
9121
9122 public void unsetSuccess() {
9123 this.success = null;
9124 }
9125
9126
9127 public boolean isSetSuccess() {
9128 return this.success != null;
9129 }
9130
9131 public void setSuccessIsSet(boolean value) {
9132 if (!value) {
9133 this.success = null;
9134 }
9135 }
9136
9137 public CentralDogmaException getE() {
9138 return this.e;
9139 }
9140
9141 public listRemovedProjects_result setE(CentralDogmaException e) {
9142 this.e = e;
9143 return this;
9144 }
9145
9146 public void unsetE() {
9147 this.e = null;
9148 }
9149
9150
9151 public boolean isSetE() {
9152 return this.e != null;
9153 }
9154
9155 public void setEIsSet(boolean value) {
9156 if (!value) {
9157 this.e = null;
9158 }
9159 }
9160
9161 public void setFieldValue(_Fields field, Object value) {
9162 switch (field) {
9163 case SUCCESS:
9164 if (value == null) {
9165 unsetSuccess();
9166 } else {
9167 setSuccess((Set<String>)value);
9168 }
9169 break;
9170
9171 case E:
9172 if (value == null) {
9173 unsetE();
9174 } else {
9175 setE((CentralDogmaException)value);
9176 }
9177 break;
9178
9179 }
9180 }
9181
9182 public Object getFieldValue(_Fields field) {
9183 switch (field) {
9184 case SUCCESS:
9185 return getSuccess();
9186
9187 case E:
9188 return getE();
9189
9190 }
9191 throw new IllegalStateException();
9192 }
9193
9194
9195 public boolean isSet(_Fields field) {
9196 if (field == null) {
9197 throw new IllegalArgumentException();
9198 }
9199
9200 switch (field) {
9201 case SUCCESS:
9202 return isSetSuccess();
9203 case E:
9204 return isSetE();
9205 }
9206 throw new IllegalStateException();
9207 }
9208
9209 @Override
9210 public boolean equals(Object that) {
9211 if (that == null)
9212 return false;
9213 if (that instanceof listRemovedProjects_result)
9214 return this.equals((listRemovedProjects_result)that);
9215 return false;
9216 }
9217
9218 public boolean equals(listRemovedProjects_result that) {
9219 if (that == null)
9220 return false;
9221
9222 boolean this_present_success = true && this.isSetSuccess();
9223 boolean that_present_success = true && that.isSetSuccess();
9224 if (this_present_success || that_present_success) {
9225 if (!(this_present_success && that_present_success))
9226 return false;
9227 if (!this.success.equals(that.success))
9228 return false;
9229 }
9230
9231 boolean this_present_e = true && this.isSetE();
9232 boolean that_present_e = true && that.isSetE();
9233 if (this_present_e || that_present_e) {
9234 if (!(this_present_e && that_present_e))
9235 return false;
9236 if (!this.e.equals(that.e))
9237 return false;
9238 }
9239
9240 return true;
9241 }
9242
9243 @Override
9244 public int hashCode() {
9245 List<Object> list = new ArrayList<Object>();
9246
9247 boolean present_success = true && (isSetSuccess());
9248 list.add(present_success);
9249 if (present_success)
9250 list.add(success);
9251
9252 boolean present_e = true && (isSetE());
9253 list.add(present_e);
9254 if (present_e)
9255 list.add(e);
9256
9257 return list.hashCode();
9258 }
9259
9260 @Override
9261 public int compareTo(listRemovedProjects_result other) {
9262 if (!getClass().equals(other.getClass())) {
9263 return getClass().getName().compareTo(other.getClass().getName());
9264 }
9265
9266 int lastComparison = 0;
9267
9268 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
9269 if (lastComparison != 0) {
9270 return lastComparison;
9271 }
9272 if (isSetSuccess()) {
9273 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
9274 if (lastComparison != 0) {
9275 return lastComparison;
9276 }
9277 }
9278 lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE());
9279 if (lastComparison != 0) {
9280 return lastComparison;
9281 }
9282 if (isSetE()) {
9283 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e);
9284 if (lastComparison != 0) {
9285 return lastComparison;
9286 }
9287 }
9288 return 0;
9289 }
9290
9291 public _Fields fieldForId(int fieldId) {
9292 return _Fields.findByThriftId(fieldId);
9293 }
9294
9295 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9296 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
9297 }
9298
9299 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9300 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
9301 }
9302
9303 @Override
9304 public String toString() {
9305 StringBuilder sb = new StringBuilder("listRemovedProjects_result(");
9306 boolean first = true;
9307
9308 sb.append("success:");
9309 if (this.success == null) {
9310 sb.append("null");
9311 } else {
9312 sb.append(this.success);
9313 }
9314 first = false;
9315 if (!first) sb.append(", ");
9316 sb.append("e:");
9317 if (this.e == null) {
9318 sb.append("null");
9319 } else {
9320 sb.append(this.e);
9321 }
9322 first = false;
9323 sb.append(")");
9324 return sb.toString();
9325 }
9326
9327 public void validate() throws org.apache.thrift.TException {
9328
9329
9330 }
9331
9332 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9333 try {
9334 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9335 } catch (org.apache.thrift.TException te) {
9336 throw new java.io.IOException(te);
9337 }
9338 }
9339
9340 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9341 try {
9342 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9343 } catch (org.apache.thrift.TException te) {
9344 throw new java.io.IOException(te);
9345 }
9346 }
9347
9348 private static class listRemovedProjects_resultStandardSchemeFactory implements SchemeFactory {
9349 public listRemovedProjects_resultStandardScheme getScheme() {
9350 return new listRemovedProjects_resultStandardScheme();
9351 }
9352 }
9353
9354 private static class listRemovedProjects_resultStandardScheme extends StandardScheme<listRemovedProjects_result> {
9355
9356 public void read(org.apache.thrift.protocol.TProtocol iprot, listRemovedProjects_result struct) throws org.apache.thrift.TException {
9357 org.apache.thrift.protocol.TField schemeField;
9358 iprot.readStructBegin();
9359 while (true)
9360 {
9361 schemeField = iprot.readFieldBegin();
9362 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
9363 break;
9364 }
9365 switch (schemeField.id) {
9366 case 0:
9367 if (schemeField.type == org.apache.thrift.protocol.TType.SET) {
9368 {
9369 org.apache.thrift.protocol.TSet _set80 = iprot.readSetBegin();
9370 struct.success = new HashSet<String>(2*_set80.size);
9371 String _elem81;
9372 for (int _i82 = 0; _i82 < _set80.size; ++_i82)
9373 {
9374 _elem81 = iprot.readString();
9375 struct.success.add(_elem81);
9376 }
9377 iprot.readSetEnd();
9378 }
9379 struct.setSuccessIsSet(true);
9380 } else {
9381 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
9382 }
9383 break;
9384 case 1:
9385 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
9386 struct.e = new CentralDogmaException();
9387 struct.e.read(iprot);
9388 struct.setEIsSet(true);
9389 } else {
9390 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
9391 }
9392 break;
9393 default:
9394 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
9395 }
9396 iprot.readFieldEnd();
9397 }
9398 iprot.readStructEnd();
9399
9400
9401 struct.validate();
9402 }
9403
9404 public void write(org.apache.thrift.protocol.TProtocol oprot, listRemovedProjects_result struct) throws org.apache.thrift.TException {
9405 struct.validate();
9406
9407 oprot.writeStructBegin(STRUCT_DESC);
9408 if (struct.success != null) {
9409 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9410 {
9411 oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, struct.success.size()));
9412 for (String _iter83 : struct.success)
9413 {
9414 oprot.writeString(_iter83);
9415 }
9416 oprot.writeSetEnd();
9417 }
9418 oprot.writeFieldEnd();
9419 }
9420 if (struct.e != null) {
9421 oprot.writeFieldBegin(E_FIELD_DESC);
9422 struct.e.write(oprot);
9423 oprot.writeFieldEnd();
9424 }
9425 oprot.writeFieldStop();
9426 oprot.writeStructEnd();
9427 }
9428
9429 }
9430
9431 private static class listRemovedProjects_resultTupleSchemeFactory implements SchemeFactory {
9432 public listRemovedProjects_resultTupleScheme getScheme() {
9433 return new listRemovedProjects_resultTupleScheme();
9434 }
9435 }
9436
9437 private static class listRemovedProjects_resultTupleScheme extends TupleScheme<listRemovedProjects_result> {
9438
9439 @Override
9440 public void write(org.apache.thrift.protocol.TProtocol prot, listRemovedProjects_result struct) throws org.apache.thrift.TException {
9441 TTupleProtocol oprot = (TTupleProtocol) prot;
9442 BitSet optionals = new BitSet();
9443 if (struct.isSetSuccess()) {
9444 optionals.set(0);
9445 }
9446 if (struct.isSetE()) {
9447 optionals.set(1);
9448 }
9449 oprot.writeBitSet(optionals, 2);
9450 if (struct.isSetSuccess()) {
9451 {
9452 oprot.writeI32(struct.success.size());
9453 for (String _iter84 : struct.success)
9454 {
9455 oprot.writeString(_iter84);
9456 }
9457 }
9458 }
9459 if (struct.isSetE()) {
9460 struct.e.write(oprot);
9461 }
9462 }
9463
9464 @Override
9465 public void read(org.apache.thrift.protocol.TProtocol prot, listRemovedProjects_result struct) throws org.apache.thrift.TException {
9466 TTupleProtocol iprot = (TTupleProtocol) prot;
9467 BitSet incoming = iprot.readBitSet(2);
9468 if (incoming.get(0)) {
9469 {
9470 org.apache.thrift.protocol.TSet _set85 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
9471 struct.success = new HashSet<String>(2*_set85.size);
9472 String _elem86;
9473 for (int _i87 = 0; _i87 < _set85.size; ++_i87)
9474 {
9475 _elem86 = iprot.readString();
9476 struct.success.add(_elem86);
9477 }
9478 }
9479 struct.setSuccessIsSet(true);
9480 }
9481 if (incoming.get(1)) {
9482 struct.e = new CentralDogmaException();
9483 struct.e.read(iprot);
9484 struct.setEIsSet(true);
9485 }
9486 }
9487 }
9488
9489 }
9490
9491 public static class createRepository_args implements org.apache.thrift.TBase<createRepository_args, createRepository_args._Fields>, java.io.Serializable, Cloneable, Comparable<createRepository_args> {
9492 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createRepository_args");
9493
9494 private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)1);
9495 private static final org.apache.thrift.protocol.TField REPOSITORY_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("repositoryName", org.apache.thrift.protocol.TType.STRING, (short)2);
9496
9497 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
9498 static {
9499 schemes.put(StandardScheme.class, new createRepository_argsStandardSchemeFactory());
9500 schemes.put(TupleScheme.class, new createRepository_argsTupleSchemeFactory());
9501 }
9502
9503 public String projectName;
9504 public String repositoryName;
9505
9506
9507 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9508 PROJECT_NAME((short)1, "projectName"),
9509 REPOSITORY_NAME((short)2, "repositoryName");
9510
9511 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9512
9513 static {
9514 for (_Fields field : EnumSet.allOf(_Fields.class)) {
9515 byName.put(field.getFieldName(), field);
9516 }
9517 }
9518
9519
9520
9521
9522 public static _Fields findByThriftId(int fieldId) {
9523 switch(fieldId) {
9524 case 1:
9525 return PROJECT_NAME;
9526 case 2:
9527 return REPOSITORY_NAME;
9528 default:
9529 return null;
9530 }
9531 }
9532
9533
9534
9535
9536
9537 public static _Fields findByThriftIdOrThrow(int fieldId) {
9538 _Fields fields = findByThriftId(fieldId);
9539 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9540 return fields;
9541 }
9542
9543
9544
9545
9546 public static _Fields findByName(String name) {
9547 return byName.get(name);
9548 }
9549
9550 private final short _thriftId;
9551 private final String _fieldName;
9552
9553 _Fields(short thriftId, String fieldName) {
9554 _thriftId = thriftId;
9555 _fieldName = fieldName;
9556 }
9557
9558 public short getThriftFieldId() {
9559 return _thriftId;
9560 }
9561
9562 public String getFieldName() {
9563 return _fieldName;
9564 }
9565 }
9566
9567
9568 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9569 static {
9570 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9571 tmpMap.put(_Fields.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", org.apache.thrift.TFieldRequirementType.DEFAULT,
9572 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9573 tmpMap.put(_Fields.REPOSITORY_NAME, new org.apache.thrift.meta_data.FieldMetaData("repositoryName", org.apache.thrift.TFieldRequirementType.DEFAULT,
9574 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9575 metaDataMap = Collections.unmodifiableMap(tmpMap);
9576 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createRepository_args.class, metaDataMap);
9577 }
9578
9579 public createRepository_args() {
9580 }
9581
9582 public createRepository_args(
9583 String projectName,
9584 String repositoryName)
9585 {
9586 this();
9587 this.projectName = projectName;
9588 this.repositoryName = repositoryName;
9589 }
9590
9591
9592
9593
9594 public createRepository_args(createRepository_args other) {
9595 if (other.isSetProjectName()) {
9596 this.projectName = other.projectName;
9597 }
9598 if (other.isSetRepositoryName()) {
9599 this.repositoryName = other.repositoryName;
9600 }
9601 }
9602
9603 public createRepository_args deepCopy() {
9604 return new createRepository_args(this);
9605 }
9606
9607 @Override
9608 public void clear() {
9609 this.projectName = null;
9610 this.repositoryName = null;
9611 }
9612
9613 public String getProjectName() {
9614 return this.projectName;
9615 }
9616
9617 public createRepository_args setProjectName(String projectName) {
9618 this.projectName = projectName;
9619 return this;
9620 }
9621
9622 public void unsetProjectName() {
9623 this.projectName = null;
9624 }
9625
9626
9627 public boolean isSetProjectName() {
9628 return this.projectName != null;
9629 }
9630
9631 public void setProjectNameIsSet(boolean value) {
9632 if (!value) {
9633 this.projectName = null;
9634 }
9635 }
9636
9637 public String getRepositoryName() {
9638 return this.repositoryName;
9639 }
9640
9641 public createRepository_args setRepositoryName(String repositoryName) {
9642 this.repositoryName = repositoryName;
9643 return this;
9644 }
9645
9646 public void unsetRepositoryName() {
9647 this.repositoryName = null;
9648 }
9649
9650
9651 public boolean isSetRepositoryName() {
9652 return this.repositoryName != null;
9653 }
9654
9655 public void setRepositoryNameIsSet(boolean value) {
9656 if (!value) {
9657 this.repositoryName = null;
9658 }
9659 }
9660
9661 public void setFieldValue(_Fields field, Object value) {
9662 switch (field) {
9663 case PROJECT_NAME:
9664 if (value == null) {
9665 unsetProjectName();
9666 } else {
9667 setProjectName((String)value);
9668 }
9669 break;
9670
9671 case REPOSITORY_NAME:
9672 if (value == null) {
9673 unsetRepositoryName();
9674 } else {
9675 setRepositoryName((String)value);
9676 }
9677 break;
9678
9679 }
9680 }
9681
9682 public Object getFieldValue(_Fields field) {
9683 switch (field) {
9684 case PROJECT_NAME:
9685 return getProjectName();
9686
9687 case REPOSITORY_NAME:
9688 return getRepositoryName();
9689
9690 }
9691 throw new IllegalStateException();
9692 }
9693
9694
9695 public boolean isSet(_Fields field) {
9696 if (field == null) {
9697 throw new IllegalArgumentException();
9698 }
9699
9700 switch (field) {
9701 case PROJECT_NAME:
9702 return isSetProjectName();
9703 case REPOSITORY_NAME:
9704 return isSetRepositoryName();
9705 }
9706 throw new IllegalStateException();
9707 }
9708
9709 @Override
9710 public boolean equals(Object that) {
9711 if (that == null)
9712 return false;
9713 if (that instanceof createRepository_args)
9714 return this.equals((createRepository_args)that);
9715 return false;
9716 }
9717
9718 public boolean equals(createRepository_args that) {
9719 if (that == null)
9720 return false;
9721
9722 boolean this_present_projectName = true && this.isSetProjectName();
9723 boolean that_present_projectName = true && that.isSetProjectName();
9724 if (this_present_projectName || that_present_projectName) {
9725 if (!(this_present_projectName && that_present_projectName))
9726 return false;
9727 if (!this.projectName.equals(that.projectName))
9728 return false;
9729 }
9730
9731 boolean this_present_repositoryName = true && this.isSetRepositoryName();
9732 boolean that_present_repositoryName = true && that.isSetRepositoryName();
9733 if (this_present_repositoryName || that_present_repositoryName) {
9734 if (!(this_present_repositoryName && that_present_repositoryName))
9735 return false;
9736 if (!this.repositoryName.equals(that.repositoryName))
9737 return false;
9738 }
9739
9740 return true;
9741 }
9742
9743 @Override
9744 public int hashCode() {
9745 List<Object> list = new ArrayList<Object>();
9746
9747 boolean present_projectName = true && (isSetProjectName());
9748 list.add(present_projectName);
9749 if (present_projectName)
9750 list.add(projectName);
9751
9752 boolean present_repositoryName = true && (isSetRepositoryName());
9753 list.add(present_repositoryName);
9754 if (present_repositoryName)
9755 list.add(repositoryName);
9756
9757 return list.hashCode();
9758 }
9759
9760 @Override
9761 public int compareTo(createRepository_args other) {
9762 if (!getClass().equals(other.getClass())) {
9763 return getClass().getName().compareTo(other.getClass().getName());
9764 }
9765
9766 int lastComparison = 0;
9767
9768 lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName());
9769 if (lastComparison != 0) {
9770 return lastComparison;
9771 }
9772 if (isSetProjectName()) {
9773 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName);
9774 if (lastComparison != 0) {
9775 return lastComparison;
9776 }
9777 }
9778 lastComparison = Boolean.valueOf(isSetRepositoryName()).compareTo(other.isSetRepositoryName());
9779 if (lastComparison != 0) {
9780 return lastComparison;
9781 }
9782 if (isSetRepositoryName()) {
9783 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.repositoryName, other.repositoryName);
9784 if (lastComparison != 0) {
9785 return lastComparison;
9786 }
9787 }
9788 return 0;
9789 }
9790
9791 public _Fields fieldForId(int fieldId) {
9792 return _Fields.findByThriftId(fieldId);
9793 }
9794
9795 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9796 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
9797 }
9798
9799 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9800 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
9801 }
9802
9803 @Override
9804 public String toString() {
9805 StringBuilder sb = new StringBuilder("createRepository_args(");
9806 boolean first = true;
9807
9808 sb.append("projectName:");
9809 if (this.projectName == null) {
9810 sb.append("null");
9811 } else {
9812 sb.append(this.projectName);
9813 }
9814 first = false;
9815 if (!first) sb.append(", ");
9816 sb.append("repositoryName:");
9817 if (this.repositoryName == null) {
9818 sb.append("null");
9819 } else {
9820 sb.append(this.repositoryName);
9821 }
9822 first = false;
9823 sb.append(")");
9824 return sb.toString();
9825 }
9826
9827 public void validate() throws org.apache.thrift.TException {
9828
9829
9830 }
9831
9832 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9833 try {
9834 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9835 } catch (org.apache.thrift.TException te) {
9836 throw new java.io.IOException(te);
9837 }
9838 }
9839
9840 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9841 try {
9842 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9843 } catch (org.apache.thrift.TException te) {
9844 throw new java.io.IOException(te);
9845 }
9846 }
9847
9848 private static class createRepository_argsStandardSchemeFactory implements SchemeFactory {
9849 public createRepository_argsStandardScheme getScheme() {
9850 return new createRepository_argsStandardScheme();
9851 }
9852 }
9853
9854 private static class createRepository_argsStandardScheme extends StandardScheme<createRepository_args> {
9855
9856 public void read(org.apache.thrift.protocol.TProtocol iprot, createRepository_args struct) throws org.apache.thrift.TException {
9857 org.apache.thrift.protocol.TField schemeField;
9858 iprot.readStructBegin();
9859 while (true)
9860 {
9861 schemeField = iprot.readFieldBegin();
9862 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
9863 break;
9864 }
9865 switch (schemeField.id) {
9866 case 1:
9867 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
9868 struct.projectName = iprot.readString();
9869 struct.setProjectNameIsSet(true);
9870 } else {
9871 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
9872 }
9873 break;
9874 case 2:
9875 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
9876 struct.repositoryName = iprot.readString();
9877 struct.setRepositoryNameIsSet(true);
9878 } else {
9879 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
9880 }
9881 break;
9882 default:
9883 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
9884 }
9885 iprot.readFieldEnd();
9886 }
9887 iprot.readStructEnd();
9888
9889
9890 struct.validate();
9891 }
9892
9893 public void write(org.apache.thrift.protocol.TProtocol oprot, createRepository_args struct) throws org.apache.thrift.TException {
9894 struct.validate();
9895
9896 oprot.writeStructBegin(STRUCT_DESC);
9897 if (struct.projectName != null) {
9898 oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC);
9899 oprot.writeString(struct.projectName);
9900 oprot.writeFieldEnd();
9901 }
9902 if (struct.repositoryName != null) {
9903 oprot.writeFieldBegin(REPOSITORY_NAME_FIELD_DESC);
9904 oprot.writeString(struct.repositoryName);
9905 oprot.writeFieldEnd();
9906 }
9907 oprot.writeFieldStop();
9908 oprot.writeStructEnd();
9909 }
9910
9911 }
9912
9913 private static class createRepository_argsTupleSchemeFactory implements SchemeFactory {
9914 public createRepository_argsTupleScheme getScheme() {
9915 return new createRepository_argsTupleScheme();
9916 }
9917 }
9918
9919 private static class createRepository_argsTupleScheme extends TupleScheme<createRepository_args> {
9920
9921 @Override
9922 public void write(org.apache.thrift.protocol.TProtocol prot, createRepository_args struct) throws org.apache.thrift.TException {
9923 TTupleProtocol oprot = (TTupleProtocol) prot;
9924 BitSet optionals = new BitSet();
9925 if (struct.isSetProjectName()) {
9926 optionals.set(0);
9927 }
9928 if (struct.isSetRepositoryName()) {
9929 optionals.set(1);
9930 }
9931 oprot.writeBitSet(optionals, 2);
9932 if (struct.isSetProjectName()) {
9933 oprot.writeString(struct.projectName);
9934 }
9935 if (struct.isSetRepositoryName()) {
9936 oprot.writeString(struct.repositoryName);
9937 }
9938 }
9939
9940 @Override
9941 public void read(org.apache.thrift.protocol.TProtocol prot, createRepository_args struct) throws org.apache.thrift.TException {
9942 TTupleProtocol iprot = (TTupleProtocol) prot;
9943 BitSet incoming = iprot.readBitSet(2);
9944 if (incoming.get(0)) {
9945 struct.projectName = iprot.readString();
9946 struct.setProjectNameIsSet(true);
9947 }
9948 if (incoming.get(1)) {
9949 struct.repositoryName = iprot.readString();
9950 struct.setRepositoryNameIsSet(true);
9951 }
9952 }
9953 }
9954
9955 }
9956
9957 public static class createRepository_result implements org.apache.thrift.TBase<createRepository_result, createRepository_result._Fields>, java.io.Serializable, Cloneable, Comparable<createRepository_result> {
9958 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createRepository_result");
9959
9960 private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
9961
9962 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
9963 static {
9964 schemes.put(StandardScheme.class, new createRepository_resultStandardSchemeFactory());
9965 schemes.put(TupleScheme.class, new createRepository_resultTupleSchemeFactory());
9966 }
9967
9968 public CentralDogmaException e;
9969
9970
9971 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9972 E((short)1, "e");
9973
9974 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9975
9976 static {
9977 for (_Fields field : EnumSet.allOf(_Fields.class)) {
9978 byName.put(field.getFieldName(), field);
9979 }
9980 }
9981
9982
9983
9984
9985 public static _Fields findByThriftId(int fieldId) {
9986 switch(fieldId) {
9987 case 1:
9988 return E;
9989 default:
9990 return null;
9991 }
9992 }
9993
9994
9995
9996
9997
9998 public static _Fields findByThriftIdOrThrow(int fieldId) {
9999 _Fields fields = findByThriftId(fieldId);
10000 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10001 return fields;
10002 }
10003
10004
10005
10006
10007 public static _Fields findByName(String name) {
10008 return byName.get(name);
10009 }
10010
10011 private final short _thriftId;
10012 private final String _fieldName;
10013
10014 _Fields(short thriftId, String fieldName) {
10015 _thriftId = thriftId;
10016 _fieldName = fieldName;
10017 }
10018
10019 public short getThriftFieldId() {
10020 return _thriftId;
10021 }
10022
10023 public String getFieldName() {
10024 return _fieldName;
10025 }
10026 }
10027
10028
10029 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10030 static {
10031 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10032 tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
10033 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
10034 metaDataMap = Collections.unmodifiableMap(tmpMap);
10035 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createRepository_result.class, metaDataMap);
10036 }
10037
10038 public createRepository_result() {
10039 }
10040
10041 public createRepository_result(
10042 CentralDogmaException e)
10043 {
10044 this();
10045 this.e = e;
10046 }
10047
10048
10049
10050
10051 public createRepository_result(createRepository_result other) {
10052 if (other.isSetE()) {
10053 this.e = new CentralDogmaException(other.e);
10054 }
10055 }
10056
10057 public createRepository_result deepCopy() {
10058 return new createRepository_result(this);
10059 }
10060
10061 @Override
10062 public void clear() {
10063 this.e = null;
10064 }
10065
10066 public CentralDogmaException getE() {
10067 return this.e;
10068 }
10069
10070 public createRepository_result setE(CentralDogmaException e) {
10071 this.e = e;
10072 return this;
10073 }
10074
10075 public void unsetE() {
10076 this.e = null;
10077 }
10078
10079
10080 public boolean isSetE() {
10081 return this.e != null;
10082 }
10083
10084 public void setEIsSet(boolean value) {
10085 if (!value) {
10086 this.e = null;
10087 }
10088 }
10089
10090 public void setFieldValue(_Fields field, Object value) {
10091 switch (field) {
10092 case E:
10093 if (value == null) {
10094 unsetE();
10095 } else {
10096 setE((CentralDogmaException)value);
10097 }
10098 break;
10099
10100 }
10101 }
10102
10103 public Object getFieldValue(_Fields field) {
10104 switch (field) {
10105 case E:
10106 return getE();
10107
10108 }
10109 throw new IllegalStateException();
10110 }
10111
10112
10113 public boolean isSet(_Fields field) {
10114 if (field == null) {
10115 throw new IllegalArgumentException();
10116 }
10117
10118 switch (field) {
10119 case E:
10120 return isSetE();
10121 }
10122 throw new IllegalStateException();
10123 }
10124
10125 @Override
10126 public boolean equals(Object that) {
10127 if (that == null)
10128 return false;
10129 if (that instanceof createRepository_result)
10130 return this.equals((createRepository_result)that);
10131 return false;
10132 }
10133
10134 public boolean equals(createRepository_result that) {
10135 if (that == null)
10136 return false;
10137
10138 boolean this_present_e = true && this.isSetE();
10139 boolean that_present_e = true && that.isSetE();
10140 if (this_present_e || that_present_e) {
10141 if (!(this_present_e && that_present_e))
10142 return false;
10143 if (!this.e.equals(that.e))
10144 return false;
10145 }
10146
10147 return true;
10148 }
10149
10150 @Override
10151 public int hashCode() {
10152 List<Object> list = new ArrayList<Object>();
10153
10154 boolean present_e = true && (isSetE());
10155 list.add(present_e);
10156 if (present_e)
10157 list.add(e);
10158
10159 return list.hashCode();
10160 }
10161
10162 @Override
10163 public int compareTo(createRepository_result other) {
10164 if (!getClass().equals(other.getClass())) {
10165 return getClass().getName().compareTo(other.getClass().getName());
10166 }
10167
10168 int lastComparison = 0;
10169
10170 lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE());
10171 if (lastComparison != 0) {
10172 return lastComparison;
10173 }
10174 if (isSetE()) {
10175 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e);
10176 if (lastComparison != 0) {
10177 return lastComparison;
10178 }
10179 }
10180 return 0;
10181 }
10182
10183 public _Fields fieldForId(int fieldId) {
10184 return _Fields.findByThriftId(fieldId);
10185 }
10186
10187 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10188 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
10189 }
10190
10191 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10192 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
10193 }
10194
10195 @Override
10196 public String toString() {
10197 StringBuilder sb = new StringBuilder("createRepository_result(");
10198 boolean first = true;
10199
10200 sb.append("e:");
10201 if (this.e == null) {
10202 sb.append("null");
10203 } else {
10204 sb.append(this.e);
10205 }
10206 first = false;
10207 sb.append(")");
10208 return sb.toString();
10209 }
10210
10211 public void validate() throws org.apache.thrift.TException {
10212
10213
10214 }
10215
10216 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10217 try {
10218 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10219 } catch (org.apache.thrift.TException te) {
10220 throw new java.io.IOException(te);
10221 }
10222 }
10223
10224 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10225 try {
10226 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10227 } catch (org.apache.thrift.TException te) {
10228 throw new java.io.IOException(te);
10229 }
10230 }
10231
10232 private static class createRepository_resultStandardSchemeFactory implements SchemeFactory {
10233 public createRepository_resultStandardScheme getScheme() {
10234 return new createRepository_resultStandardScheme();
10235 }
10236 }
10237
10238 private static class createRepository_resultStandardScheme extends StandardScheme<createRepository_result> {
10239
10240 public void read(org.apache.thrift.protocol.TProtocol iprot, createRepository_result struct) throws org.apache.thrift.TException {
10241 org.apache.thrift.protocol.TField schemeField;
10242 iprot.readStructBegin();
10243 while (true)
10244 {
10245 schemeField = iprot.readFieldBegin();
10246 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
10247 break;
10248 }
10249 switch (schemeField.id) {
10250 case 1:
10251 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
10252 struct.e = new CentralDogmaException();
10253 struct.e.read(iprot);
10254 struct.setEIsSet(true);
10255 } else {
10256 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10257 }
10258 break;
10259 default:
10260 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10261 }
10262 iprot.readFieldEnd();
10263 }
10264 iprot.readStructEnd();
10265
10266
10267 struct.validate();
10268 }
10269
10270 public void write(org.apache.thrift.protocol.TProtocol oprot, createRepository_result struct) throws org.apache.thrift.TException {
10271 struct.validate();
10272
10273 oprot.writeStructBegin(STRUCT_DESC);
10274 if (struct.e != null) {
10275 oprot.writeFieldBegin(E_FIELD_DESC);
10276 struct.e.write(oprot);
10277 oprot.writeFieldEnd();
10278 }
10279 oprot.writeFieldStop();
10280 oprot.writeStructEnd();
10281 }
10282
10283 }
10284
10285 private static class createRepository_resultTupleSchemeFactory implements SchemeFactory {
10286 public createRepository_resultTupleScheme getScheme() {
10287 return new createRepository_resultTupleScheme();
10288 }
10289 }
10290
10291 private static class createRepository_resultTupleScheme extends TupleScheme<createRepository_result> {
10292
10293 @Override
10294 public void write(org.apache.thrift.protocol.TProtocol prot, createRepository_result struct) throws org.apache.thrift.TException {
10295 TTupleProtocol oprot = (TTupleProtocol) prot;
10296 BitSet optionals = new BitSet();
10297 if (struct.isSetE()) {
10298 optionals.set(0);
10299 }
10300 oprot.writeBitSet(optionals, 1);
10301 if (struct.isSetE()) {
10302 struct.e.write(oprot);
10303 }
10304 }
10305
10306 @Override
10307 public void read(org.apache.thrift.protocol.TProtocol prot, createRepository_result struct) throws org.apache.thrift.TException {
10308 TTupleProtocol iprot = (TTupleProtocol) prot;
10309 BitSet incoming = iprot.readBitSet(1);
10310 if (incoming.get(0)) {
10311 struct.e = new CentralDogmaException();
10312 struct.e.read(iprot);
10313 struct.setEIsSet(true);
10314 }
10315 }
10316 }
10317
10318 }
10319
10320 public static class removeRepository_args implements org.apache.thrift.TBase<removeRepository_args, removeRepository_args._Fields>, java.io.Serializable, Cloneable, Comparable<removeRepository_args> {
10321 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("removeRepository_args");
10322
10323 private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)1);
10324 private static final org.apache.thrift.protocol.TField REPOSITORY_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("repositoryName", org.apache.thrift.protocol.TType.STRING, (short)2);
10325
10326 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
10327 static {
10328 schemes.put(StandardScheme.class, new removeRepository_argsStandardSchemeFactory());
10329 schemes.put(TupleScheme.class, new removeRepository_argsTupleSchemeFactory());
10330 }
10331
10332 public String projectName;
10333 public String repositoryName;
10334
10335
10336 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10337 PROJECT_NAME((short)1, "projectName"),
10338 REPOSITORY_NAME((short)2, "repositoryName");
10339
10340 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10341
10342 static {
10343 for (_Fields field : EnumSet.allOf(_Fields.class)) {
10344 byName.put(field.getFieldName(), field);
10345 }
10346 }
10347
10348
10349
10350
10351 public static _Fields findByThriftId(int fieldId) {
10352 switch(fieldId) {
10353 case 1:
10354 return PROJECT_NAME;
10355 case 2:
10356 return REPOSITORY_NAME;
10357 default:
10358 return null;
10359 }
10360 }
10361
10362
10363
10364
10365
10366 public static _Fields findByThriftIdOrThrow(int fieldId) {
10367 _Fields fields = findByThriftId(fieldId);
10368 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10369 return fields;
10370 }
10371
10372
10373
10374
10375 public static _Fields findByName(String name) {
10376 return byName.get(name);
10377 }
10378
10379 private final short _thriftId;
10380 private final String _fieldName;
10381
10382 _Fields(short thriftId, String fieldName) {
10383 _thriftId = thriftId;
10384 _fieldName = fieldName;
10385 }
10386
10387 public short getThriftFieldId() {
10388 return _thriftId;
10389 }
10390
10391 public String getFieldName() {
10392 return _fieldName;
10393 }
10394 }
10395
10396
10397 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10398 static {
10399 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10400 tmpMap.put(_Fields.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", org.apache.thrift.TFieldRequirementType.DEFAULT,
10401 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10402 tmpMap.put(_Fields.REPOSITORY_NAME, new org.apache.thrift.meta_data.FieldMetaData("repositoryName", org.apache.thrift.TFieldRequirementType.DEFAULT,
10403 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10404 metaDataMap = Collections.unmodifiableMap(tmpMap);
10405 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(removeRepository_args.class, metaDataMap);
10406 }
10407
10408 public removeRepository_args() {
10409 }
10410
10411 public removeRepository_args(
10412 String projectName,
10413 String repositoryName)
10414 {
10415 this();
10416 this.projectName = projectName;
10417 this.repositoryName = repositoryName;
10418 }
10419
10420
10421
10422
10423 public removeRepository_args(removeRepository_args other) {
10424 if (other.isSetProjectName()) {
10425 this.projectName = other.projectName;
10426 }
10427 if (other.isSetRepositoryName()) {
10428 this.repositoryName = other.repositoryName;
10429 }
10430 }
10431
10432 public removeRepository_args deepCopy() {
10433 return new removeRepository_args(this);
10434 }
10435
10436 @Override
10437 public void clear() {
10438 this.projectName = null;
10439 this.repositoryName = null;
10440 }
10441
10442 public String getProjectName() {
10443 return this.projectName;
10444 }
10445
10446 public removeRepository_args setProjectName(String projectName) {
10447 this.projectName = projectName;
10448 return this;
10449 }
10450
10451 public void unsetProjectName() {
10452 this.projectName = null;
10453 }
10454
10455
10456 public boolean isSetProjectName() {
10457 return this.projectName != null;
10458 }
10459
10460 public void setProjectNameIsSet(boolean value) {
10461 if (!value) {
10462 this.projectName = null;
10463 }
10464 }
10465
10466 public String getRepositoryName() {
10467 return this.repositoryName;
10468 }
10469
10470 public removeRepository_args setRepositoryName(String repositoryName) {
10471 this.repositoryName = repositoryName;
10472 return this;
10473 }
10474
10475 public void unsetRepositoryName() {
10476 this.repositoryName = null;
10477 }
10478
10479
10480 public boolean isSetRepositoryName() {
10481 return this.repositoryName != null;
10482 }
10483
10484 public void setRepositoryNameIsSet(boolean value) {
10485 if (!value) {
10486 this.repositoryName = null;
10487 }
10488 }
10489
10490 public void setFieldValue(_Fields field, Object value) {
10491 switch (field) {
10492 case PROJECT_NAME:
10493 if (value == null) {
10494 unsetProjectName();
10495 } else {
10496 setProjectName((String)value);
10497 }
10498 break;
10499
10500 case REPOSITORY_NAME:
10501 if (value == null) {
10502 unsetRepositoryName();
10503 } else {
10504 setRepositoryName((String)value);
10505 }
10506 break;
10507
10508 }
10509 }
10510
10511 public Object getFieldValue(_Fields field) {
10512 switch (field) {
10513 case PROJECT_NAME:
10514 return getProjectName();
10515
10516 case REPOSITORY_NAME:
10517 return getRepositoryName();
10518
10519 }
10520 throw new IllegalStateException();
10521 }
10522
10523
10524 public boolean isSet(_Fields field) {
10525 if (field == null) {
10526 throw new IllegalArgumentException();
10527 }
10528
10529 switch (field) {
10530 case PROJECT_NAME:
10531 return isSetProjectName();
10532 case REPOSITORY_NAME:
10533 return isSetRepositoryName();
10534 }
10535 throw new IllegalStateException();
10536 }
10537
10538 @Override
10539 public boolean equals(Object that) {
10540 if (that == null)
10541 return false;
10542 if (that instanceof removeRepository_args)
10543 return this.equals((removeRepository_args)that);
10544 return false;
10545 }
10546
10547 public boolean equals(removeRepository_args that) {
10548 if (that == null)
10549 return false;
10550
10551 boolean this_present_projectName = true && this.isSetProjectName();
10552 boolean that_present_projectName = true && that.isSetProjectName();
10553 if (this_present_projectName || that_present_projectName) {
10554 if (!(this_present_projectName && that_present_projectName))
10555 return false;
10556 if (!this.projectName.equals(that.projectName))
10557 return false;
10558 }
10559
10560 boolean this_present_repositoryName = true && this.isSetRepositoryName();
10561 boolean that_present_repositoryName = true && that.isSetRepositoryName();
10562 if (this_present_repositoryName || that_present_repositoryName) {
10563 if (!(this_present_repositoryName && that_present_repositoryName))
10564 return false;
10565 if (!this.repositoryName.equals(that.repositoryName))
10566 return false;
10567 }
10568
10569 return true;
10570 }
10571
10572 @Override
10573 public int hashCode() {
10574 List<Object> list = new ArrayList<Object>();
10575
10576 boolean present_projectName = true && (isSetProjectName());
10577 list.add(present_projectName);
10578 if (present_projectName)
10579 list.add(projectName);
10580
10581 boolean present_repositoryName = true && (isSetRepositoryName());
10582 list.add(present_repositoryName);
10583 if (present_repositoryName)
10584 list.add(repositoryName);
10585
10586 return list.hashCode();
10587 }
10588
10589 @Override
10590 public int compareTo(removeRepository_args other) {
10591 if (!getClass().equals(other.getClass())) {
10592 return getClass().getName().compareTo(other.getClass().getName());
10593 }
10594
10595 int lastComparison = 0;
10596
10597 lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName());
10598 if (lastComparison != 0) {
10599 return lastComparison;
10600 }
10601 if (isSetProjectName()) {
10602 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName);
10603 if (lastComparison != 0) {
10604 return lastComparison;
10605 }
10606 }
10607 lastComparison = Boolean.valueOf(isSetRepositoryName()).compareTo(other.isSetRepositoryName());
10608 if (lastComparison != 0) {
10609 return lastComparison;
10610 }
10611 if (isSetRepositoryName()) {
10612 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.repositoryName, other.repositoryName);
10613 if (lastComparison != 0) {
10614 return lastComparison;
10615 }
10616 }
10617 return 0;
10618 }
10619
10620 public _Fields fieldForId(int fieldId) {
10621 return _Fields.findByThriftId(fieldId);
10622 }
10623
10624 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10625 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
10626 }
10627
10628 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10629 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
10630 }
10631
10632 @Override
10633 public String toString() {
10634 StringBuilder sb = new StringBuilder("removeRepository_args(");
10635 boolean first = true;
10636
10637 sb.append("projectName:");
10638 if (this.projectName == null) {
10639 sb.append("null");
10640 } else {
10641 sb.append(this.projectName);
10642 }
10643 first = false;
10644 if (!first) sb.append(", ");
10645 sb.append("repositoryName:");
10646 if (this.repositoryName == null) {
10647 sb.append("null");
10648 } else {
10649 sb.append(this.repositoryName);
10650 }
10651 first = false;
10652 sb.append(")");
10653 return sb.toString();
10654 }
10655
10656 public void validate() throws org.apache.thrift.TException {
10657
10658
10659 }
10660
10661 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10662 try {
10663 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10664 } catch (org.apache.thrift.TException te) {
10665 throw new java.io.IOException(te);
10666 }
10667 }
10668
10669 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10670 try {
10671 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10672 } catch (org.apache.thrift.TException te) {
10673 throw new java.io.IOException(te);
10674 }
10675 }
10676
10677 private static class removeRepository_argsStandardSchemeFactory implements SchemeFactory {
10678 public removeRepository_argsStandardScheme getScheme() {
10679 return new removeRepository_argsStandardScheme();
10680 }
10681 }
10682
10683 private static class removeRepository_argsStandardScheme extends StandardScheme<removeRepository_args> {
10684
10685 public void read(org.apache.thrift.protocol.TProtocol iprot, removeRepository_args struct) throws org.apache.thrift.TException {
10686 org.apache.thrift.protocol.TField schemeField;
10687 iprot.readStructBegin();
10688 while (true)
10689 {
10690 schemeField = iprot.readFieldBegin();
10691 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
10692 break;
10693 }
10694 switch (schemeField.id) {
10695 case 1:
10696 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
10697 struct.projectName = iprot.readString();
10698 struct.setProjectNameIsSet(true);
10699 } else {
10700 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10701 }
10702 break;
10703 case 2:
10704 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
10705 struct.repositoryName = iprot.readString();
10706 struct.setRepositoryNameIsSet(true);
10707 } else {
10708 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10709 }
10710 break;
10711 default:
10712 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10713 }
10714 iprot.readFieldEnd();
10715 }
10716 iprot.readStructEnd();
10717
10718
10719 struct.validate();
10720 }
10721
10722 public void write(org.apache.thrift.protocol.TProtocol oprot, removeRepository_args struct) throws org.apache.thrift.TException {
10723 struct.validate();
10724
10725 oprot.writeStructBegin(STRUCT_DESC);
10726 if (struct.projectName != null) {
10727 oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC);
10728 oprot.writeString(struct.projectName);
10729 oprot.writeFieldEnd();
10730 }
10731 if (struct.repositoryName != null) {
10732 oprot.writeFieldBegin(REPOSITORY_NAME_FIELD_DESC);
10733 oprot.writeString(struct.repositoryName);
10734 oprot.writeFieldEnd();
10735 }
10736 oprot.writeFieldStop();
10737 oprot.writeStructEnd();
10738 }
10739
10740 }
10741
10742 private static class removeRepository_argsTupleSchemeFactory implements SchemeFactory {
10743 public removeRepository_argsTupleScheme getScheme() {
10744 return new removeRepository_argsTupleScheme();
10745 }
10746 }
10747
10748 private static class removeRepository_argsTupleScheme extends TupleScheme<removeRepository_args> {
10749
10750 @Override
10751 public void write(org.apache.thrift.protocol.TProtocol prot, removeRepository_args struct) throws org.apache.thrift.TException {
10752 TTupleProtocol oprot = (TTupleProtocol) prot;
10753 BitSet optionals = new BitSet();
10754 if (struct.isSetProjectName()) {
10755 optionals.set(0);
10756 }
10757 if (struct.isSetRepositoryName()) {
10758 optionals.set(1);
10759 }
10760 oprot.writeBitSet(optionals, 2);
10761 if (struct.isSetProjectName()) {
10762 oprot.writeString(struct.projectName);
10763 }
10764 if (struct.isSetRepositoryName()) {
10765 oprot.writeString(struct.repositoryName);
10766 }
10767 }
10768
10769 @Override
10770 public void read(org.apache.thrift.protocol.TProtocol prot, removeRepository_args struct) throws org.apache.thrift.TException {
10771 TTupleProtocol iprot = (TTupleProtocol) prot;
10772 BitSet incoming = iprot.readBitSet(2);
10773 if (incoming.get(0)) {
10774 struct.projectName = iprot.readString();
10775 struct.setProjectNameIsSet(true);
10776 }
10777 if (incoming.get(1)) {
10778 struct.repositoryName = iprot.readString();
10779 struct.setRepositoryNameIsSet(true);
10780 }
10781 }
10782 }
10783
10784 }
10785
10786 public static class removeRepository_result implements org.apache.thrift.TBase<removeRepository_result, removeRepository_result._Fields>, java.io.Serializable, Cloneable, Comparable<removeRepository_result> {
10787 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("removeRepository_result");
10788
10789 private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
10790
10791 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
10792 static {
10793 schemes.put(StandardScheme.class, new removeRepository_resultStandardSchemeFactory());
10794 schemes.put(TupleScheme.class, new removeRepository_resultTupleSchemeFactory());
10795 }
10796
10797 public CentralDogmaException e;
10798
10799
10800 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10801 E((short)1, "e");
10802
10803 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10804
10805 static {
10806 for (_Fields field : EnumSet.allOf(_Fields.class)) {
10807 byName.put(field.getFieldName(), field);
10808 }
10809 }
10810
10811
10812
10813
10814 public static _Fields findByThriftId(int fieldId) {
10815 switch(fieldId) {
10816 case 1:
10817 return E;
10818 default:
10819 return null;
10820 }
10821 }
10822
10823
10824
10825
10826
10827 public static _Fields findByThriftIdOrThrow(int fieldId) {
10828 _Fields fields = findByThriftId(fieldId);
10829 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10830 return fields;
10831 }
10832
10833
10834
10835
10836 public static _Fields findByName(String name) {
10837 return byName.get(name);
10838 }
10839
10840 private final short _thriftId;
10841 private final String _fieldName;
10842
10843 _Fields(short thriftId, String fieldName) {
10844 _thriftId = thriftId;
10845 _fieldName = fieldName;
10846 }
10847
10848 public short getThriftFieldId() {
10849 return _thriftId;
10850 }
10851
10852 public String getFieldName() {
10853 return _fieldName;
10854 }
10855 }
10856
10857
10858 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10859 static {
10860 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10861 tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
10862 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
10863 metaDataMap = Collections.unmodifiableMap(tmpMap);
10864 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(removeRepository_result.class, metaDataMap);
10865 }
10866
10867 public removeRepository_result() {
10868 }
10869
10870 public removeRepository_result(
10871 CentralDogmaException e)
10872 {
10873 this();
10874 this.e = e;
10875 }
10876
10877
10878
10879
10880 public removeRepository_result(removeRepository_result other) {
10881 if (other.isSetE()) {
10882 this.e = new CentralDogmaException(other.e);
10883 }
10884 }
10885
10886 public removeRepository_result deepCopy() {
10887 return new removeRepository_result(this);
10888 }
10889
10890 @Override
10891 public void clear() {
10892 this.e = null;
10893 }
10894
10895 public CentralDogmaException getE() {
10896 return this.e;
10897 }
10898
10899 public removeRepository_result setE(CentralDogmaException e) {
10900 this.e = e;
10901 return this;
10902 }
10903
10904 public void unsetE() {
10905 this.e = null;
10906 }
10907
10908
10909 public boolean isSetE() {
10910 return this.e != null;
10911 }
10912
10913 public void setEIsSet(boolean value) {
10914 if (!value) {
10915 this.e = null;
10916 }
10917 }
10918
10919 public void setFieldValue(_Fields field, Object value) {
10920 switch (field) {
10921 case E:
10922 if (value == null) {
10923 unsetE();
10924 } else {
10925 setE((CentralDogmaException)value);
10926 }
10927 break;
10928
10929 }
10930 }
10931
10932 public Object getFieldValue(_Fields field) {
10933 switch (field) {
10934 case E:
10935 return getE();
10936
10937 }
10938 throw new IllegalStateException();
10939 }
10940
10941
10942 public boolean isSet(_Fields field) {
10943 if (field == null) {
10944 throw new IllegalArgumentException();
10945 }
10946
10947 switch (field) {
10948 case E:
10949 return isSetE();
10950 }
10951 throw new IllegalStateException();
10952 }
10953
10954 @Override
10955 public boolean equals(Object that) {
10956 if (that == null)
10957 return false;
10958 if (that instanceof removeRepository_result)
10959 return this.equals((removeRepository_result)that);
10960 return false;
10961 }
10962
10963 public boolean equals(removeRepository_result that) {
10964 if (that == null)
10965 return false;
10966
10967 boolean this_present_e = true && this.isSetE();
10968 boolean that_present_e = true && that.isSetE();
10969 if (this_present_e || that_present_e) {
10970 if (!(this_present_e && that_present_e))
10971 return false;
10972 if (!this.e.equals(that.e))
10973 return false;
10974 }
10975
10976 return true;
10977 }
10978
10979 @Override
10980 public int hashCode() {
10981 List<Object> list = new ArrayList<Object>();
10982
10983 boolean present_e = true && (isSetE());
10984 list.add(present_e);
10985 if (present_e)
10986 list.add(e);
10987
10988 return list.hashCode();
10989 }
10990
10991 @Override
10992 public int compareTo(removeRepository_result other) {
10993 if (!getClass().equals(other.getClass())) {
10994 return getClass().getName().compareTo(other.getClass().getName());
10995 }
10996
10997 int lastComparison = 0;
10998
10999 lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE());
11000 if (lastComparison != 0) {
11001 return lastComparison;
11002 }
11003 if (isSetE()) {
11004 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e);
11005 if (lastComparison != 0) {
11006 return lastComparison;
11007 }
11008 }
11009 return 0;
11010 }
11011
11012 public _Fields fieldForId(int fieldId) {
11013 return _Fields.findByThriftId(fieldId);
11014 }
11015
11016 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11017 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
11018 }
11019
11020 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11021 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
11022 }
11023
11024 @Override
11025 public String toString() {
11026 StringBuilder sb = new StringBuilder("removeRepository_result(");
11027 boolean first = true;
11028
11029 sb.append("e:");
11030 if (this.e == null) {
11031 sb.append("null");
11032 } else {
11033 sb.append(this.e);
11034 }
11035 first = false;
11036 sb.append(")");
11037 return sb.toString();
11038 }
11039
11040 public void validate() throws org.apache.thrift.TException {
11041
11042
11043 }
11044
11045 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11046 try {
11047 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11048 } catch (org.apache.thrift.TException te) {
11049 throw new java.io.IOException(te);
11050 }
11051 }
11052
11053 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11054 try {
11055 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11056 } catch (org.apache.thrift.TException te) {
11057 throw new java.io.IOException(te);
11058 }
11059 }
11060
11061 private static class removeRepository_resultStandardSchemeFactory implements SchemeFactory {
11062 public removeRepository_resultStandardScheme getScheme() {
11063 return new removeRepository_resultStandardScheme();
11064 }
11065 }
11066
11067 private static class removeRepository_resultStandardScheme extends StandardScheme<removeRepository_result> {
11068
11069 public void read(org.apache.thrift.protocol.TProtocol iprot, removeRepository_result struct) throws org.apache.thrift.TException {
11070 org.apache.thrift.protocol.TField schemeField;
11071 iprot.readStructBegin();
11072 while (true)
11073 {
11074 schemeField = iprot.readFieldBegin();
11075 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
11076 break;
11077 }
11078 switch (schemeField.id) {
11079 case 1:
11080 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
11081 struct.e = new CentralDogmaException();
11082 struct.e.read(iprot);
11083 struct.setEIsSet(true);
11084 } else {
11085 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11086 }
11087 break;
11088 default:
11089 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11090 }
11091 iprot.readFieldEnd();
11092 }
11093 iprot.readStructEnd();
11094
11095
11096 struct.validate();
11097 }
11098
11099 public void write(org.apache.thrift.protocol.TProtocol oprot, removeRepository_result struct) throws org.apache.thrift.TException {
11100 struct.validate();
11101
11102 oprot.writeStructBegin(STRUCT_DESC);
11103 if (struct.e != null) {
11104 oprot.writeFieldBegin(E_FIELD_DESC);
11105 struct.e.write(oprot);
11106 oprot.writeFieldEnd();
11107 }
11108 oprot.writeFieldStop();
11109 oprot.writeStructEnd();
11110 }
11111
11112 }
11113
11114 private static class removeRepository_resultTupleSchemeFactory implements SchemeFactory {
11115 public removeRepository_resultTupleScheme getScheme() {
11116 return new removeRepository_resultTupleScheme();
11117 }
11118 }
11119
11120 private static class removeRepository_resultTupleScheme extends TupleScheme<removeRepository_result> {
11121
11122 @Override
11123 public void write(org.apache.thrift.protocol.TProtocol prot, removeRepository_result struct) throws org.apache.thrift.TException {
11124 TTupleProtocol oprot = (TTupleProtocol) prot;
11125 BitSet optionals = new BitSet();
11126 if (struct.isSetE()) {
11127 optionals.set(0);
11128 }
11129 oprot.writeBitSet(optionals, 1);
11130 if (struct.isSetE()) {
11131 struct.e.write(oprot);
11132 }
11133 }
11134
11135 @Override
11136 public void read(org.apache.thrift.protocol.TProtocol prot, removeRepository_result struct) throws org.apache.thrift.TException {
11137 TTupleProtocol iprot = (TTupleProtocol) prot;
11138 BitSet incoming = iprot.readBitSet(1);
11139 if (incoming.get(0)) {
11140 struct.e = new CentralDogmaException();
11141 struct.e.read(iprot);
11142 struct.setEIsSet(true);
11143 }
11144 }
11145 }
11146
11147 }
11148
11149 public static class unremoveRepository_args implements org.apache.thrift.TBase<unremoveRepository_args, unremoveRepository_args._Fields>, java.io.Serializable, Cloneable, Comparable<unremoveRepository_args> {
11150 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("unremoveRepository_args");
11151
11152 private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)1);
11153 private static final org.apache.thrift.protocol.TField REPOSITORY_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("repositoryName", org.apache.thrift.protocol.TType.STRING, (short)2);
11154
11155 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
11156 static {
11157 schemes.put(StandardScheme.class, new unremoveRepository_argsStandardSchemeFactory());
11158 schemes.put(TupleScheme.class, new unremoveRepository_argsTupleSchemeFactory());
11159 }
11160
11161 public String projectName;
11162 public String repositoryName;
11163
11164
11165 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11166 PROJECT_NAME((short)1, "projectName"),
11167 REPOSITORY_NAME((short)2, "repositoryName");
11168
11169 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11170
11171 static {
11172 for (_Fields field : EnumSet.allOf(_Fields.class)) {
11173 byName.put(field.getFieldName(), field);
11174 }
11175 }
11176
11177
11178
11179
11180 public static _Fields findByThriftId(int fieldId) {
11181 switch(fieldId) {
11182 case 1:
11183 return PROJECT_NAME;
11184 case 2:
11185 return REPOSITORY_NAME;
11186 default:
11187 return null;
11188 }
11189 }
11190
11191
11192
11193
11194
11195 public static _Fields findByThriftIdOrThrow(int fieldId) {
11196 _Fields fields = findByThriftId(fieldId);
11197 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11198 return fields;
11199 }
11200
11201
11202
11203
11204 public static _Fields findByName(String name) {
11205 return byName.get(name);
11206 }
11207
11208 private final short _thriftId;
11209 private final String _fieldName;
11210
11211 _Fields(short thriftId, String fieldName) {
11212 _thriftId = thriftId;
11213 _fieldName = fieldName;
11214 }
11215
11216 public short getThriftFieldId() {
11217 return _thriftId;
11218 }
11219
11220 public String getFieldName() {
11221 return _fieldName;
11222 }
11223 }
11224
11225
11226 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11227 static {
11228 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11229 tmpMap.put(_Fields.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", org.apache.thrift.TFieldRequirementType.DEFAULT,
11230 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
11231 tmpMap.put(_Fields.REPOSITORY_NAME, new org.apache.thrift.meta_data.FieldMetaData("repositoryName", org.apache.thrift.TFieldRequirementType.DEFAULT,
11232 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
11233 metaDataMap = Collections.unmodifiableMap(tmpMap);
11234 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(unremoveRepository_args.class, metaDataMap);
11235 }
11236
11237 public unremoveRepository_args() {
11238 }
11239
11240 public unremoveRepository_args(
11241 String projectName,
11242 String repositoryName)
11243 {
11244 this();
11245 this.projectName = projectName;
11246 this.repositoryName = repositoryName;
11247 }
11248
11249
11250
11251
11252 public unremoveRepository_args(unremoveRepository_args other) {
11253 if (other.isSetProjectName()) {
11254 this.projectName = other.projectName;
11255 }
11256 if (other.isSetRepositoryName()) {
11257 this.repositoryName = other.repositoryName;
11258 }
11259 }
11260
11261 public unremoveRepository_args deepCopy() {
11262 return new unremoveRepository_args(this);
11263 }
11264
11265 @Override
11266 public void clear() {
11267 this.projectName = null;
11268 this.repositoryName = null;
11269 }
11270
11271 public String getProjectName() {
11272 return this.projectName;
11273 }
11274
11275 public unremoveRepository_args setProjectName(String projectName) {
11276 this.projectName = projectName;
11277 return this;
11278 }
11279
11280 public void unsetProjectName() {
11281 this.projectName = null;
11282 }
11283
11284
11285 public boolean isSetProjectName() {
11286 return this.projectName != null;
11287 }
11288
11289 public void setProjectNameIsSet(boolean value) {
11290 if (!value) {
11291 this.projectName = null;
11292 }
11293 }
11294
11295 public String getRepositoryName() {
11296 return this.repositoryName;
11297 }
11298
11299 public unremoveRepository_args setRepositoryName(String repositoryName) {
11300 this.repositoryName = repositoryName;
11301 return this;
11302 }
11303
11304 public void unsetRepositoryName() {
11305 this.repositoryName = null;
11306 }
11307
11308
11309 public boolean isSetRepositoryName() {
11310 return this.repositoryName != null;
11311 }
11312
11313 public void setRepositoryNameIsSet(boolean value) {
11314 if (!value) {
11315 this.repositoryName = null;
11316 }
11317 }
11318
11319 public void setFieldValue(_Fields field, Object value) {
11320 switch (field) {
11321 case PROJECT_NAME:
11322 if (value == null) {
11323 unsetProjectName();
11324 } else {
11325 setProjectName((String)value);
11326 }
11327 break;
11328
11329 case REPOSITORY_NAME:
11330 if (value == null) {
11331 unsetRepositoryName();
11332 } else {
11333 setRepositoryName((String)value);
11334 }
11335 break;
11336
11337 }
11338 }
11339
11340 public Object getFieldValue(_Fields field) {
11341 switch (field) {
11342 case PROJECT_NAME:
11343 return getProjectName();
11344
11345 case REPOSITORY_NAME:
11346 return getRepositoryName();
11347
11348 }
11349 throw new IllegalStateException();
11350 }
11351
11352
11353 public boolean isSet(_Fields field) {
11354 if (field == null) {
11355 throw new IllegalArgumentException();
11356 }
11357
11358 switch (field) {
11359 case PROJECT_NAME:
11360 return isSetProjectName();
11361 case REPOSITORY_NAME:
11362 return isSetRepositoryName();
11363 }
11364 throw new IllegalStateException();
11365 }
11366
11367 @Override
11368 public boolean equals(Object that) {
11369 if (that == null)
11370 return false;
11371 if (that instanceof unremoveRepository_args)
11372 return this.equals((unremoveRepository_args)that);
11373 return false;
11374 }
11375
11376 public boolean equals(unremoveRepository_args that) {
11377 if (that == null)
11378 return false;
11379
11380 boolean this_present_projectName = true && this.isSetProjectName();
11381 boolean that_present_projectName = true && that.isSetProjectName();
11382 if (this_present_projectName || that_present_projectName) {
11383 if (!(this_present_projectName && that_present_projectName))
11384 return false;
11385 if (!this.projectName.equals(that.projectName))
11386 return false;
11387 }
11388
11389 boolean this_present_repositoryName = true && this.isSetRepositoryName();
11390 boolean that_present_repositoryName = true && that.isSetRepositoryName();
11391 if (this_present_repositoryName || that_present_repositoryName) {
11392 if (!(this_present_repositoryName && that_present_repositoryName))
11393 return false;
11394 if (!this.repositoryName.equals(that.repositoryName))
11395 return false;
11396 }
11397
11398 return true;
11399 }
11400
11401 @Override
11402 public int hashCode() {
11403 List<Object> list = new ArrayList<Object>();
11404
11405 boolean present_projectName = true && (isSetProjectName());
11406 list.add(present_projectName);
11407 if (present_projectName)
11408 list.add(projectName);
11409
11410 boolean present_repositoryName = true && (isSetRepositoryName());
11411 list.add(present_repositoryName);
11412 if (present_repositoryName)
11413 list.add(repositoryName);
11414
11415 return list.hashCode();
11416 }
11417
11418 @Override
11419 public int compareTo(unremoveRepository_args other) {
11420 if (!getClass().equals(other.getClass())) {
11421 return getClass().getName().compareTo(other.getClass().getName());
11422 }
11423
11424 int lastComparison = 0;
11425
11426 lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName());
11427 if (lastComparison != 0) {
11428 return lastComparison;
11429 }
11430 if (isSetProjectName()) {
11431 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName);
11432 if (lastComparison != 0) {
11433 return lastComparison;
11434 }
11435 }
11436 lastComparison = Boolean.valueOf(isSetRepositoryName()).compareTo(other.isSetRepositoryName());
11437 if (lastComparison != 0) {
11438 return lastComparison;
11439 }
11440 if (isSetRepositoryName()) {
11441 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.repositoryName, other.repositoryName);
11442 if (lastComparison != 0) {
11443 return lastComparison;
11444 }
11445 }
11446 return 0;
11447 }
11448
11449 public _Fields fieldForId(int fieldId) {
11450 return _Fields.findByThriftId(fieldId);
11451 }
11452
11453 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11454 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
11455 }
11456
11457 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11458 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
11459 }
11460
11461 @Override
11462 public String toString() {
11463 StringBuilder sb = new StringBuilder("unremoveRepository_args(");
11464 boolean first = true;
11465
11466 sb.append("projectName:");
11467 if (this.projectName == null) {
11468 sb.append("null");
11469 } else {
11470 sb.append(this.projectName);
11471 }
11472 first = false;
11473 if (!first) sb.append(", ");
11474 sb.append("repositoryName:");
11475 if (this.repositoryName == null) {
11476 sb.append("null");
11477 } else {
11478 sb.append(this.repositoryName);
11479 }
11480 first = false;
11481 sb.append(")");
11482 return sb.toString();
11483 }
11484
11485 public void validate() throws org.apache.thrift.TException {
11486
11487
11488 }
11489
11490 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11491 try {
11492 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11493 } catch (org.apache.thrift.TException te) {
11494 throw new java.io.IOException(te);
11495 }
11496 }
11497
11498 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11499 try {
11500 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11501 } catch (org.apache.thrift.TException te) {
11502 throw new java.io.IOException(te);
11503 }
11504 }
11505
11506 private static class unremoveRepository_argsStandardSchemeFactory implements SchemeFactory {
11507 public unremoveRepository_argsStandardScheme getScheme() {
11508 return new unremoveRepository_argsStandardScheme();
11509 }
11510 }
11511
11512 private static class unremoveRepository_argsStandardScheme extends StandardScheme<unremoveRepository_args> {
11513
11514 public void read(org.apache.thrift.protocol.TProtocol iprot, unremoveRepository_args struct) throws org.apache.thrift.TException {
11515 org.apache.thrift.protocol.TField schemeField;
11516 iprot.readStructBegin();
11517 while (true)
11518 {
11519 schemeField = iprot.readFieldBegin();
11520 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
11521 break;
11522 }
11523 switch (schemeField.id) {
11524 case 1:
11525 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
11526 struct.projectName = iprot.readString();
11527 struct.setProjectNameIsSet(true);
11528 } else {
11529 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11530 }
11531 break;
11532 case 2:
11533 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
11534 struct.repositoryName = iprot.readString();
11535 struct.setRepositoryNameIsSet(true);
11536 } else {
11537 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11538 }
11539 break;
11540 default:
11541 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11542 }
11543 iprot.readFieldEnd();
11544 }
11545 iprot.readStructEnd();
11546
11547
11548 struct.validate();
11549 }
11550
11551 public void write(org.apache.thrift.protocol.TProtocol oprot, unremoveRepository_args struct) throws org.apache.thrift.TException {
11552 struct.validate();
11553
11554 oprot.writeStructBegin(STRUCT_DESC);
11555 if (struct.projectName != null) {
11556 oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC);
11557 oprot.writeString(struct.projectName);
11558 oprot.writeFieldEnd();
11559 }
11560 if (struct.repositoryName != null) {
11561 oprot.writeFieldBegin(REPOSITORY_NAME_FIELD_DESC);
11562 oprot.writeString(struct.repositoryName);
11563 oprot.writeFieldEnd();
11564 }
11565 oprot.writeFieldStop();
11566 oprot.writeStructEnd();
11567 }
11568
11569 }
11570
11571 private static class unremoveRepository_argsTupleSchemeFactory implements SchemeFactory {
11572 public unremoveRepository_argsTupleScheme getScheme() {
11573 return new unremoveRepository_argsTupleScheme();
11574 }
11575 }
11576
11577 private static class unremoveRepository_argsTupleScheme extends TupleScheme<unremoveRepository_args> {
11578
11579 @Override
11580 public void write(org.apache.thrift.protocol.TProtocol prot, unremoveRepository_args struct) throws org.apache.thrift.TException {
11581 TTupleProtocol oprot = (TTupleProtocol) prot;
11582 BitSet optionals = new BitSet();
11583 if (struct.isSetProjectName()) {
11584 optionals.set(0);
11585 }
11586 if (struct.isSetRepositoryName()) {
11587 optionals.set(1);
11588 }
11589 oprot.writeBitSet(optionals, 2);
11590 if (struct.isSetProjectName()) {
11591 oprot.writeString(struct.projectName);
11592 }
11593 if (struct.isSetRepositoryName()) {
11594 oprot.writeString(struct.repositoryName);
11595 }
11596 }
11597
11598 @Override
11599 public void read(org.apache.thrift.protocol.TProtocol prot, unremoveRepository_args struct) throws org.apache.thrift.TException {
11600 TTupleProtocol iprot = (TTupleProtocol) prot;
11601 BitSet incoming = iprot.readBitSet(2);
11602 if (incoming.get(0)) {
11603 struct.projectName = iprot.readString();
11604 struct.setProjectNameIsSet(true);
11605 }
11606 if (incoming.get(1)) {
11607 struct.repositoryName = iprot.readString();
11608 struct.setRepositoryNameIsSet(true);
11609 }
11610 }
11611 }
11612
11613 }
11614
11615 public static class unremoveRepository_result implements org.apache.thrift.TBase<unremoveRepository_result, unremoveRepository_result._Fields>, java.io.Serializable, Cloneable, Comparable<unremoveRepository_result> {
11616 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("unremoveRepository_result");
11617
11618 private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
11619
11620 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
11621 static {
11622 schemes.put(StandardScheme.class, new unremoveRepository_resultStandardSchemeFactory());
11623 schemes.put(TupleScheme.class, new unremoveRepository_resultTupleSchemeFactory());
11624 }
11625
11626 public CentralDogmaException e;
11627
11628
11629 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11630 E((short)1, "e");
11631
11632 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11633
11634 static {
11635 for (_Fields field : EnumSet.allOf(_Fields.class)) {
11636 byName.put(field.getFieldName(), field);
11637 }
11638 }
11639
11640
11641
11642
11643 public static _Fields findByThriftId(int fieldId) {
11644 switch(fieldId) {
11645 case 1:
11646 return E;
11647 default:
11648 return null;
11649 }
11650 }
11651
11652
11653
11654
11655
11656 public static _Fields findByThriftIdOrThrow(int fieldId) {
11657 _Fields fields = findByThriftId(fieldId);
11658 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11659 return fields;
11660 }
11661
11662
11663
11664
11665 public static _Fields findByName(String name) {
11666 return byName.get(name);
11667 }
11668
11669 private final short _thriftId;
11670 private final String _fieldName;
11671
11672 _Fields(short thriftId, String fieldName) {
11673 _thriftId = thriftId;
11674 _fieldName = fieldName;
11675 }
11676
11677 public short getThriftFieldId() {
11678 return _thriftId;
11679 }
11680
11681 public String getFieldName() {
11682 return _fieldName;
11683 }
11684 }
11685
11686
11687 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11688 static {
11689 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11690 tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
11691 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
11692 metaDataMap = Collections.unmodifiableMap(tmpMap);
11693 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(unremoveRepository_result.class, metaDataMap);
11694 }
11695
11696 public unremoveRepository_result() {
11697 }
11698
11699 public unremoveRepository_result(
11700 CentralDogmaException e)
11701 {
11702 this();
11703 this.e = e;
11704 }
11705
11706
11707
11708
11709 public unremoveRepository_result(unremoveRepository_result other) {
11710 if (other.isSetE()) {
11711 this.e = new CentralDogmaException(other.e);
11712 }
11713 }
11714
11715 public unremoveRepository_result deepCopy() {
11716 return new unremoveRepository_result(this);
11717 }
11718
11719 @Override
11720 public void clear() {
11721 this.e = null;
11722 }
11723
11724 public CentralDogmaException getE() {
11725 return this.e;
11726 }
11727
11728 public unremoveRepository_result setE(CentralDogmaException e) {
11729 this.e = e;
11730 return this;
11731 }
11732
11733 public void unsetE() {
11734 this.e = null;
11735 }
11736
11737
11738 public boolean isSetE() {
11739 return this.e != null;
11740 }
11741
11742 public void setEIsSet(boolean value) {
11743 if (!value) {
11744 this.e = null;
11745 }
11746 }
11747
11748 public void setFieldValue(_Fields field, Object value) {
11749 switch (field) {
11750 case E:
11751 if (value == null) {
11752 unsetE();
11753 } else {
11754 setE((CentralDogmaException)value);
11755 }
11756 break;
11757
11758 }
11759 }
11760
11761 public Object getFieldValue(_Fields field) {
11762 switch (field) {
11763 case E:
11764 return getE();
11765
11766 }
11767 throw new IllegalStateException();
11768 }
11769
11770
11771 public boolean isSet(_Fields field) {
11772 if (field == null) {
11773 throw new IllegalArgumentException();
11774 }
11775
11776 switch (field) {
11777 case E:
11778 return isSetE();
11779 }
11780 throw new IllegalStateException();
11781 }
11782
11783 @Override
11784 public boolean equals(Object that) {
11785 if (that == null)
11786 return false;
11787 if (that instanceof unremoveRepository_result)
11788 return this.equals((unremoveRepository_result)that);
11789 return false;
11790 }
11791
11792 public boolean equals(unremoveRepository_result that) {
11793 if (that == null)
11794 return false;
11795
11796 boolean this_present_e = true && this.isSetE();
11797 boolean that_present_e = true && that.isSetE();
11798 if (this_present_e || that_present_e) {
11799 if (!(this_present_e && that_present_e))
11800 return false;
11801 if (!this.e.equals(that.e))
11802 return false;
11803 }
11804
11805 return true;
11806 }
11807
11808 @Override
11809 public int hashCode() {
11810 List<Object> list = new ArrayList<Object>();
11811
11812 boolean present_e = true && (isSetE());
11813 list.add(present_e);
11814 if (present_e)
11815 list.add(e);
11816
11817 return list.hashCode();
11818 }
11819
11820 @Override
11821 public int compareTo(unremoveRepository_result other) {
11822 if (!getClass().equals(other.getClass())) {
11823 return getClass().getName().compareTo(other.getClass().getName());
11824 }
11825
11826 int lastComparison = 0;
11827
11828 lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE());
11829 if (lastComparison != 0) {
11830 return lastComparison;
11831 }
11832 if (isSetE()) {
11833 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e);
11834 if (lastComparison != 0) {
11835 return lastComparison;
11836 }
11837 }
11838 return 0;
11839 }
11840
11841 public _Fields fieldForId(int fieldId) {
11842 return _Fields.findByThriftId(fieldId);
11843 }
11844
11845 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11846 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
11847 }
11848
11849 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11850 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
11851 }
11852
11853 @Override
11854 public String toString() {
11855 StringBuilder sb = new StringBuilder("unremoveRepository_result(");
11856 boolean first = true;
11857
11858 sb.append("e:");
11859 if (this.e == null) {
11860 sb.append("null");
11861 } else {
11862 sb.append(this.e);
11863 }
11864 first = false;
11865 sb.append(")");
11866 return sb.toString();
11867 }
11868
11869 public void validate() throws org.apache.thrift.TException {
11870
11871
11872 }
11873
11874 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11875 try {
11876 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11877 } catch (org.apache.thrift.TException te) {
11878 throw new java.io.IOException(te);
11879 }
11880 }
11881
11882 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11883 try {
11884 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11885 } catch (org.apache.thrift.TException te) {
11886 throw new java.io.IOException(te);
11887 }
11888 }
11889
11890 private static class unremoveRepository_resultStandardSchemeFactory implements SchemeFactory {
11891 public unremoveRepository_resultStandardScheme getScheme() {
11892 return new unremoveRepository_resultStandardScheme();
11893 }
11894 }
11895
11896 private static class unremoveRepository_resultStandardScheme extends StandardScheme<unremoveRepository_result> {
11897
11898 public void read(org.apache.thrift.protocol.TProtocol iprot, unremoveRepository_result struct) throws org.apache.thrift.TException {
11899 org.apache.thrift.protocol.TField schemeField;
11900 iprot.readStructBegin();
11901 while (true)
11902 {
11903 schemeField = iprot.readFieldBegin();
11904 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
11905 break;
11906 }
11907 switch (schemeField.id) {
11908 case 1:
11909 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
11910 struct.e = new CentralDogmaException();
11911 struct.e.read(iprot);
11912 struct.setEIsSet(true);
11913 } else {
11914 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11915 }
11916 break;
11917 default:
11918 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11919 }
11920 iprot.readFieldEnd();
11921 }
11922 iprot.readStructEnd();
11923
11924
11925 struct.validate();
11926 }
11927
11928 public void write(org.apache.thrift.protocol.TProtocol oprot, unremoveRepository_result struct) throws org.apache.thrift.TException {
11929 struct.validate();
11930
11931 oprot.writeStructBegin(STRUCT_DESC);
11932 if (struct.e != null) {
11933 oprot.writeFieldBegin(E_FIELD_DESC);
11934 struct.e.write(oprot);
11935 oprot.writeFieldEnd();
11936 }
11937 oprot.writeFieldStop();
11938 oprot.writeStructEnd();
11939 }
11940
11941 }
11942
11943 private static class unremoveRepository_resultTupleSchemeFactory implements SchemeFactory {
11944 public unremoveRepository_resultTupleScheme getScheme() {
11945 return new unremoveRepository_resultTupleScheme();
11946 }
11947 }
11948
11949 private static class unremoveRepository_resultTupleScheme extends TupleScheme<unremoveRepository_result> {
11950
11951 @Override
11952 public void write(org.apache.thrift.protocol.TProtocol prot, unremoveRepository_result struct) throws org.apache.thrift.TException {
11953 TTupleProtocol oprot = (TTupleProtocol) prot;
11954 BitSet optionals = new BitSet();
11955 if (struct.isSetE()) {
11956 optionals.set(0);
11957 }
11958 oprot.writeBitSet(optionals, 1);
11959 if (struct.isSetE()) {
11960 struct.e.write(oprot);
11961 }
11962 }
11963
11964 @Override
11965 public void read(org.apache.thrift.protocol.TProtocol prot, unremoveRepository_result struct) throws org.apache.thrift.TException {
11966 TTupleProtocol iprot = (TTupleProtocol) prot;
11967 BitSet incoming = iprot.readBitSet(1);
11968 if (incoming.get(0)) {
11969 struct.e = new CentralDogmaException();
11970 struct.e.read(iprot);
11971 struct.setEIsSet(true);
11972 }
11973 }
11974 }
11975
11976 }
11977
11978 public static class listRepositories_args implements org.apache.thrift.TBase<listRepositories_args, listRepositories_args._Fields>, java.io.Serializable, Cloneable, Comparable<listRepositories_args> {
11979 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("listRepositories_args");
11980
11981 private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)1);
11982
11983 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
11984 static {
11985 schemes.put(StandardScheme.class, new listRepositories_argsStandardSchemeFactory());
11986 schemes.put(TupleScheme.class, new listRepositories_argsTupleSchemeFactory());
11987 }
11988
11989 public String projectName;
11990
11991
11992 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11993 PROJECT_NAME((short)1, "projectName");
11994
11995 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11996
11997 static {
11998 for (_Fields field : EnumSet.allOf(_Fields.class)) {
11999 byName.put(field.getFieldName(), field);
12000 }
12001 }
12002
12003
12004
12005
12006 public static _Fields findByThriftId(int fieldId) {
12007 switch(fieldId) {
12008 case 1:
12009 return PROJECT_NAME;
12010 default:
12011 return null;
12012 }
12013 }
12014
12015
12016
12017
12018
12019 public static _Fields findByThriftIdOrThrow(int fieldId) {
12020 _Fields fields = findByThriftId(fieldId);
12021 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12022 return fields;
12023 }
12024
12025
12026
12027
12028 public static _Fields findByName(String name) {
12029 return byName.get(name);
12030 }
12031
12032 private final short _thriftId;
12033 private final String _fieldName;
12034
12035 _Fields(short thriftId, String fieldName) {
12036 _thriftId = thriftId;
12037 _fieldName = fieldName;
12038 }
12039
12040 public short getThriftFieldId() {
12041 return _thriftId;
12042 }
12043
12044 public String getFieldName() {
12045 return _fieldName;
12046 }
12047 }
12048
12049
12050 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12051 static {
12052 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12053 tmpMap.put(_Fields.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", org.apache.thrift.TFieldRequirementType.DEFAULT,
12054 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
12055 metaDataMap = Collections.unmodifiableMap(tmpMap);
12056 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(listRepositories_args.class, metaDataMap);
12057 }
12058
12059 public listRepositories_args() {
12060 }
12061
12062 public listRepositories_args(
12063 String projectName)
12064 {
12065 this();
12066 this.projectName = projectName;
12067 }
12068
12069
12070
12071
12072 public listRepositories_args(listRepositories_args other) {
12073 if (other.isSetProjectName()) {
12074 this.projectName = other.projectName;
12075 }
12076 }
12077
12078 public listRepositories_args deepCopy() {
12079 return new listRepositories_args(this);
12080 }
12081
12082 @Override
12083 public void clear() {
12084 this.projectName = null;
12085 }
12086
12087 public String getProjectName() {
12088 return this.projectName;
12089 }
12090
12091 public listRepositories_args setProjectName(String projectName) {
12092 this.projectName = projectName;
12093 return this;
12094 }
12095
12096 public void unsetProjectName() {
12097 this.projectName = null;
12098 }
12099
12100
12101 public boolean isSetProjectName() {
12102 return this.projectName != null;
12103 }
12104
12105 public void setProjectNameIsSet(boolean value) {
12106 if (!value) {
12107 this.projectName = null;
12108 }
12109 }
12110
12111 public void setFieldValue(_Fields field, Object value) {
12112 switch (field) {
12113 case PROJECT_NAME:
12114 if (value == null) {
12115 unsetProjectName();
12116 } else {
12117 setProjectName((String)value);
12118 }
12119 break;
12120
12121 }
12122 }
12123
12124 public Object getFieldValue(_Fields field) {
12125 switch (field) {
12126 case PROJECT_NAME:
12127 return getProjectName();
12128
12129 }
12130 throw new IllegalStateException();
12131 }
12132
12133
12134 public boolean isSet(_Fields field) {
12135 if (field == null) {
12136 throw new IllegalArgumentException();
12137 }
12138
12139 switch (field) {
12140 case PROJECT_NAME:
12141 return isSetProjectName();
12142 }
12143 throw new IllegalStateException();
12144 }
12145
12146 @Override
12147 public boolean equals(Object that) {
12148 if (that == null)
12149 return false;
12150 if (that instanceof listRepositories_args)
12151 return this.equals((listRepositories_args)that);
12152 return false;
12153 }
12154
12155 public boolean equals(listRepositories_args that) {
12156 if (that == null)
12157 return false;
12158
12159 boolean this_present_projectName = true && this.isSetProjectName();
12160 boolean that_present_projectName = true && that.isSetProjectName();
12161 if (this_present_projectName || that_present_projectName) {
12162 if (!(this_present_projectName && that_present_projectName))
12163 return false;
12164 if (!this.projectName.equals(that.projectName))
12165 return false;
12166 }
12167
12168 return true;
12169 }
12170
12171 @Override
12172 public int hashCode() {
12173 List<Object> list = new ArrayList<Object>();
12174
12175 boolean present_projectName = true && (isSetProjectName());
12176 list.add(present_projectName);
12177 if (present_projectName)
12178 list.add(projectName);
12179
12180 return list.hashCode();
12181 }
12182
12183 @Override
12184 public int compareTo(listRepositories_args other) {
12185 if (!getClass().equals(other.getClass())) {
12186 return getClass().getName().compareTo(other.getClass().getName());
12187 }
12188
12189 int lastComparison = 0;
12190
12191 lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName());
12192 if (lastComparison != 0) {
12193 return lastComparison;
12194 }
12195 if (isSetProjectName()) {
12196 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName);
12197 if (lastComparison != 0) {
12198 return lastComparison;
12199 }
12200 }
12201 return 0;
12202 }
12203
12204 public _Fields fieldForId(int fieldId) {
12205 return _Fields.findByThriftId(fieldId);
12206 }
12207
12208 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12209 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
12210 }
12211
12212 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12213 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
12214 }
12215
12216 @Override
12217 public String toString() {
12218 StringBuilder sb = new StringBuilder("listRepositories_args(");
12219 boolean first = true;
12220
12221 sb.append("projectName:");
12222 if (this.projectName == null) {
12223 sb.append("null");
12224 } else {
12225 sb.append(this.projectName);
12226 }
12227 first = false;
12228 sb.append(")");
12229 return sb.toString();
12230 }
12231
12232 public void validate() throws org.apache.thrift.TException {
12233
12234
12235 }
12236
12237 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12238 try {
12239 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12240 } catch (org.apache.thrift.TException te) {
12241 throw new java.io.IOException(te);
12242 }
12243 }
12244
12245 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12246 try {
12247 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12248 } catch (org.apache.thrift.TException te) {
12249 throw new java.io.IOException(te);
12250 }
12251 }
12252
12253 private static class listRepositories_argsStandardSchemeFactory implements SchemeFactory {
12254 public listRepositories_argsStandardScheme getScheme() {
12255 return new listRepositories_argsStandardScheme();
12256 }
12257 }
12258
12259 private static class listRepositories_argsStandardScheme extends StandardScheme<listRepositories_args> {
12260
12261 public void read(org.apache.thrift.protocol.TProtocol iprot, listRepositories_args struct) throws org.apache.thrift.TException {
12262 org.apache.thrift.protocol.TField schemeField;
12263 iprot.readStructBegin();
12264 while (true)
12265 {
12266 schemeField = iprot.readFieldBegin();
12267 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
12268 break;
12269 }
12270 switch (schemeField.id) {
12271 case 1:
12272 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
12273 struct.projectName = iprot.readString();
12274 struct.setProjectNameIsSet(true);
12275 } else {
12276 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
12277 }
12278 break;
12279 default:
12280 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
12281 }
12282 iprot.readFieldEnd();
12283 }
12284 iprot.readStructEnd();
12285
12286
12287 struct.validate();
12288 }
12289
12290 public void write(org.apache.thrift.protocol.TProtocol oprot, listRepositories_args struct) throws org.apache.thrift.TException {
12291 struct.validate();
12292
12293 oprot.writeStructBegin(STRUCT_DESC);
12294 if (struct.projectName != null) {
12295 oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC);
12296 oprot.writeString(struct.projectName);
12297 oprot.writeFieldEnd();
12298 }
12299 oprot.writeFieldStop();
12300 oprot.writeStructEnd();
12301 }
12302
12303 }
12304
12305 private static class listRepositories_argsTupleSchemeFactory implements SchemeFactory {
12306 public listRepositories_argsTupleScheme getScheme() {
12307 return new listRepositories_argsTupleScheme();
12308 }
12309 }
12310
12311 private static class listRepositories_argsTupleScheme extends TupleScheme<listRepositories_args> {
12312
12313 @Override
12314 public void write(org.apache.thrift.protocol.TProtocol prot, listRepositories_args struct) throws org.apache.thrift.TException {
12315 TTupleProtocol oprot = (TTupleProtocol) prot;
12316 BitSet optionals = new BitSet();
12317 if (struct.isSetProjectName()) {
12318 optionals.set(0);
12319 }
12320 oprot.writeBitSet(optionals, 1);
12321 if (struct.isSetProjectName()) {
12322 oprot.writeString(struct.projectName);
12323 }
12324 }
12325
12326 @Override
12327 public void read(org.apache.thrift.protocol.TProtocol prot, listRepositories_args struct) throws org.apache.thrift.TException {
12328 TTupleProtocol iprot = (TTupleProtocol) prot;
12329 BitSet incoming = iprot.readBitSet(1);
12330 if (incoming.get(0)) {
12331 struct.projectName = iprot.readString();
12332 struct.setProjectNameIsSet(true);
12333 }
12334 }
12335 }
12336
12337 }
12338
12339 public static class listRepositories_result implements org.apache.thrift.TBase<listRepositories_result, listRepositories_result._Fields>, java.io.Serializable, Cloneable, Comparable<listRepositories_result> {
12340 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("listRepositories_result");
12341
12342 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
12343 private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
12344
12345 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
12346 static {
12347 schemes.put(StandardScheme.class, new listRepositories_resultStandardSchemeFactory());
12348 schemes.put(TupleScheme.class, new listRepositories_resultTupleSchemeFactory());
12349 }
12350
12351 public List<Repository> success;
12352 public CentralDogmaException e;
12353
12354
12355 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12356 SUCCESS((short)0, "success"),
12357 E((short)1, "e");
12358
12359 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12360
12361 static {
12362 for (_Fields field : EnumSet.allOf(_Fields.class)) {
12363 byName.put(field.getFieldName(), field);
12364 }
12365 }
12366
12367
12368
12369
12370 public static _Fields findByThriftId(int fieldId) {
12371 switch(fieldId) {
12372 case 0:
12373 return SUCCESS;
12374 case 1:
12375 return E;
12376 default:
12377 return null;
12378 }
12379 }
12380
12381
12382
12383
12384
12385 public static _Fields findByThriftIdOrThrow(int fieldId) {
12386 _Fields fields = findByThriftId(fieldId);
12387 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12388 return fields;
12389 }
12390
12391
12392
12393
12394 public static _Fields findByName(String name) {
12395 return byName.get(name);
12396 }
12397
12398 private final short _thriftId;
12399 private final String _fieldName;
12400
12401 _Fields(short thriftId, String fieldName) {
12402 _thriftId = thriftId;
12403 _fieldName = fieldName;
12404 }
12405
12406 public short getThriftFieldId() {
12407 return _thriftId;
12408 }
12409
12410 public String getFieldName() {
12411 return _fieldName;
12412 }
12413 }
12414
12415
12416 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12417 static {
12418 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12419 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
12420 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
12421 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Repository.class))));
12422 tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
12423 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
12424 metaDataMap = Collections.unmodifiableMap(tmpMap);
12425 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(listRepositories_result.class, metaDataMap);
12426 }
12427
12428 public listRepositories_result() {
12429 }
12430
12431 public listRepositories_result(
12432 List<Repository> success,
12433 CentralDogmaException e)
12434 {
12435 this();
12436 this.success = success;
12437 this.e = e;
12438 }
12439
12440
12441
12442
12443 public listRepositories_result(listRepositories_result other) {
12444 if (other.isSetSuccess()) {
12445 List<Repository> __this__success = new ArrayList<Repository>(other.success.size());
12446 for (Repository other_element : other.success) {
12447 __this__success.add(new Repository(other_element));
12448 }
12449 this.success = __this__success;
12450 }
12451 if (other.isSetE()) {
12452 this.e = new CentralDogmaException(other.e);
12453 }
12454 }
12455
12456 public listRepositories_result deepCopy() {
12457 return new listRepositories_result(this);
12458 }
12459
12460 @Override
12461 public void clear() {
12462 this.success = null;
12463 this.e = null;
12464 }
12465
12466 public int getSuccessSize() {
12467 return (this.success == null) ? 0 : this.success.size();
12468 }
12469
12470 public java.util.Iterator<Repository> getSuccessIterator() {
12471 return (this.success == null) ? null : this.success.iterator();
12472 }
12473
12474 public void addToSuccess(Repository elem) {
12475 if (this.success == null) {
12476 this.success = new ArrayList<Repository>();
12477 }
12478 this.success.add(elem);
12479 }
12480
12481 public List<Repository> getSuccess() {
12482 return this.success;
12483 }
12484
12485 public listRepositories_result setSuccess(List<Repository> success) {
12486 this.success = success;
12487 return this;
12488 }
12489
12490 public void unsetSuccess() {
12491 this.success = null;
12492 }
12493
12494
12495 public boolean isSetSuccess() {
12496 return this.success != null;
12497 }
12498
12499 public void setSuccessIsSet(boolean value) {
12500 if (!value) {
12501 this.success = null;
12502 }
12503 }
12504
12505 public CentralDogmaException getE() {
12506 return this.e;
12507 }
12508
12509 public listRepositories_result setE(CentralDogmaException e) {
12510 this.e = e;
12511 return this;
12512 }
12513
12514 public void unsetE() {
12515 this.e = null;
12516 }
12517
12518
12519 public boolean isSetE() {
12520 return this.e != null;
12521 }
12522
12523 public void setEIsSet(boolean value) {
12524 if (!value) {
12525 this.e = null;
12526 }
12527 }
12528
12529 public void setFieldValue(_Fields field, Object value) {
12530 switch (field) {
12531 case SUCCESS:
12532 if (value == null) {
12533 unsetSuccess();
12534 } else {
12535 setSuccess((List<Repository>)value);
12536 }
12537 break;
12538
12539 case E:
12540 if (value == null) {
12541 unsetE();
12542 } else {
12543 setE((CentralDogmaException)value);
12544 }
12545 break;
12546
12547 }
12548 }
12549
12550 public Object getFieldValue(_Fields field) {
12551 switch (field) {
12552 case SUCCESS:
12553 return getSuccess();
12554
12555 case E:
12556 return getE();
12557
12558 }
12559 throw new IllegalStateException();
12560 }
12561
12562
12563 public boolean isSet(_Fields field) {
12564 if (field == null) {
12565 throw new IllegalArgumentException();
12566 }
12567
12568 switch (field) {
12569 case SUCCESS:
12570 return isSetSuccess();
12571 case E:
12572 return isSetE();
12573 }
12574 throw new IllegalStateException();
12575 }
12576
12577 @Override
12578 public boolean equals(Object that) {
12579 if (that == null)
12580 return false;
12581 if (that instanceof listRepositories_result)
12582 return this.equals((listRepositories_result)that);
12583 return false;
12584 }
12585
12586 public boolean equals(listRepositories_result that) {
12587 if (that == null)
12588 return false;
12589
12590 boolean this_present_success = true && this.isSetSuccess();
12591 boolean that_present_success = true && that.isSetSuccess();
12592 if (this_present_success || that_present_success) {
12593 if (!(this_present_success && that_present_success))
12594 return false;
12595 if (!this.success.equals(that.success))
12596 return false;
12597 }
12598
12599 boolean this_present_e = true && this.isSetE();
12600 boolean that_present_e = true && that.isSetE();
12601 if (this_present_e || that_present_e) {
12602 if (!(this_present_e && that_present_e))
12603 return false;
12604 if (!this.e.equals(that.e))
12605 return false;
12606 }
12607
12608 return true;
12609 }
12610
12611 @Override
12612 public int hashCode() {
12613 List<Object> list = new ArrayList<Object>();
12614
12615 boolean present_success = true && (isSetSuccess());
12616 list.add(present_success);
12617 if (present_success)
12618 list.add(success);
12619
12620 boolean present_e = true && (isSetE());
12621 list.add(present_e);
12622 if (present_e)
12623 list.add(e);
12624
12625 return list.hashCode();
12626 }
12627
12628 @Override
12629 public int compareTo(listRepositories_result other) {
12630 if (!getClass().equals(other.getClass())) {
12631 return getClass().getName().compareTo(other.getClass().getName());
12632 }
12633
12634 int lastComparison = 0;
12635
12636 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
12637 if (lastComparison != 0) {
12638 return lastComparison;
12639 }
12640 if (isSetSuccess()) {
12641 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
12642 if (lastComparison != 0) {
12643 return lastComparison;
12644 }
12645 }
12646 lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE());
12647 if (lastComparison != 0) {
12648 return lastComparison;
12649 }
12650 if (isSetE()) {
12651 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e);
12652 if (lastComparison != 0) {
12653 return lastComparison;
12654 }
12655 }
12656 return 0;
12657 }
12658
12659 public _Fields fieldForId(int fieldId) {
12660 return _Fields.findByThriftId(fieldId);
12661 }
12662
12663 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12664 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
12665 }
12666
12667 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12668 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
12669 }
12670
12671 @Override
12672 public String toString() {
12673 StringBuilder sb = new StringBuilder("listRepositories_result(");
12674 boolean first = true;
12675
12676 sb.append("success:");
12677 if (this.success == null) {
12678 sb.append("null");
12679 } else {
12680 sb.append(this.success);
12681 }
12682 first = false;
12683 if (!first) sb.append(", ");
12684 sb.append("e:");
12685 if (this.e == null) {
12686 sb.append("null");
12687 } else {
12688 sb.append(this.e);
12689 }
12690 first = false;
12691 sb.append(")");
12692 return sb.toString();
12693 }
12694
12695 public void validate() throws org.apache.thrift.TException {
12696
12697
12698 }
12699
12700 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12701 try {
12702 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12703 } catch (org.apache.thrift.TException te) {
12704 throw new java.io.IOException(te);
12705 }
12706 }
12707
12708 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12709 try {
12710 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12711 } catch (org.apache.thrift.TException te) {
12712 throw new java.io.IOException(te);
12713 }
12714 }
12715
12716 private static class listRepositories_resultStandardSchemeFactory implements SchemeFactory {
12717 public listRepositories_resultStandardScheme getScheme() {
12718 return new listRepositories_resultStandardScheme();
12719 }
12720 }
12721
12722 private static class listRepositories_resultStandardScheme extends StandardScheme<listRepositories_result> {
12723
12724 public void read(org.apache.thrift.protocol.TProtocol iprot, listRepositories_result struct) throws org.apache.thrift.TException {
12725 org.apache.thrift.protocol.TField schemeField;
12726 iprot.readStructBegin();
12727 while (true)
12728 {
12729 schemeField = iprot.readFieldBegin();
12730 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
12731 break;
12732 }
12733 switch (schemeField.id) {
12734 case 0:
12735 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
12736 {
12737 org.apache.thrift.protocol.TList _list88 = iprot.readListBegin();
12738 struct.success = new ArrayList<Repository>(_list88.size);
12739 Repository _elem89;
12740 for (int _i90 = 0; _i90 < _list88.size; ++_i90)
12741 {
12742 _elem89 = new Repository();
12743 _elem89.read(iprot);
12744 struct.success.add(_elem89);
12745 }
12746 iprot.readListEnd();
12747 }
12748 struct.setSuccessIsSet(true);
12749 } else {
12750 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
12751 }
12752 break;
12753 case 1:
12754 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
12755 struct.e = new CentralDogmaException();
12756 struct.e.read(iprot);
12757 struct.setEIsSet(true);
12758 } else {
12759 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
12760 }
12761 break;
12762 default:
12763 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
12764 }
12765 iprot.readFieldEnd();
12766 }
12767 iprot.readStructEnd();
12768
12769
12770 struct.validate();
12771 }
12772
12773 public void write(org.apache.thrift.protocol.TProtocol oprot, listRepositories_result struct) throws org.apache.thrift.TException {
12774 struct.validate();
12775
12776 oprot.writeStructBegin(STRUCT_DESC);
12777 if (struct.success != null) {
12778 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12779 {
12780 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
12781 for (Repository _iter91 : struct.success)
12782 {
12783 _iter91.write(oprot);
12784 }
12785 oprot.writeListEnd();
12786 }
12787 oprot.writeFieldEnd();
12788 }
12789 if (struct.e != null) {
12790 oprot.writeFieldBegin(E_FIELD_DESC);
12791 struct.e.write(oprot);
12792 oprot.writeFieldEnd();
12793 }
12794 oprot.writeFieldStop();
12795 oprot.writeStructEnd();
12796 }
12797
12798 }
12799
12800 private static class listRepositories_resultTupleSchemeFactory implements SchemeFactory {
12801 public listRepositories_resultTupleScheme getScheme() {
12802 return new listRepositories_resultTupleScheme();
12803 }
12804 }
12805
12806 private static class listRepositories_resultTupleScheme extends TupleScheme<listRepositories_result> {
12807
12808 @Override
12809 public void write(org.apache.thrift.protocol.TProtocol prot, listRepositories_result struct) throws org.apache.thrift.TException {
12810 TTupleProtocol oprot = (TTupleProtocol) prot;
12811 BitSet optionals = new BitSet();
12812 if (struct.isSetSuccess()) {
12813 optionals.set(0);
12814 }
12815 if (struct.isSetE()) {
12816 optionals.set(1);
12817 }
12818 oprot.writeBitSet(optionals, 2);
12819 if (struct.isSetSuccess()) {
12820 {
12821 oprot.writeI32(struct.success.size());
12822 for (Repository _iter92 : struct.success)
12823 {
12824 _iter92.write(oprot);
12825 }
12826 }
12827 }
12828 if (struct.isSetE()) {
12829 struct.e.write(oprot);
12830 }
12831 }
12832
12833 @Override
12834 public void read(org.apache.thrift.protocol.TProtocol prot, listRepositories_result struct) throws org.apache.thrift.TException {
12835 TTupleProtocol iprot = (TTupleProtocol) prot;
12836 BitSet incoming = iprot.readBitSet(2);
12837 if (incoming.get(0)) {
12838 {
12839 org.apache.thrift.protocol.TList _list93 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
12840 struct.success = new ArrayList<Repository>(_list93.size);
12841 Repository _elem94;
12842 for (int _i95 = 0; _i95 < _list93.size; ++_i95)
12843 {
12844 _elem94 = new Repository();
12845 _elem94.read(iprot);
12846 struct.success.add(_elem94);
12847 }
12848 }
12849 struct.setSuccessIsSet(true);
12850 }
12851 if (incoming.get(1)) {
12852 struct.e = new CentralDogmaException();
12853 struct.e.read(iprot);
12854 struct.setEIsSet(true);
12855 }
12856 }
12857 }
12858
12859 }
12860
12861 public static class listRemovedRepositories_args implements org.apache.thrift.TBase<listRemovedRepositories_args, listRemovedRepositories_args._Fields>, java.io.Serializable, Cloneable, Comparable<listRemovedRepositories_args> {
12862 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("listRemovedRepositories_args");
12863
12864 private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)1);
12865
12866 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
12867 static {
12868 schemes.put(StandardScheme.class, new listRemovedRepositories_argsStandardSchemeFactory());
12869 schemes.put(TupleScheme.class, new listRemovedRepositories_argsTupleSchemeFactory());
12870 }
12871
12872 public String projectName;
12873
12874
12875 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12876 PROJECT_NAME((short)1, "projectName");
12877
12878 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12879
12880 static {
12881 for (_Fields field : EnumSet.allOf(_Fields.class)) {
12882 byName.put(field.getFieldName(), field);
12883 }
12884 }
12885
12886
12887
12888
12889 public static _Fields findByThriftId(int fieldId) {
12890 switch(fieldId) {
12891 case 1:
12892 return PROJECT_NAME;
12893 default:
12894 return null;
12895 }
12896 }
12897
12898
12899
12900
12901
12902 public static _Fields findByThriftIdOrThrow(int fieldId) {
12903 _Fields fields = findByThriftId(fieldId);
12904 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12905 return fields;
12906 }
12907
12908
12909
12910
12911 public static _Fields findByName(String name) {
12912 return byName.get(name);
12913 }
12914
12915 private final short _thriftId;
12916 private final String _fieldName;
12917
12918 _Fields(short thriftId, String fieldName) {
12919 _thriftId = thriftId;
12920 _fieldName = fieldName;
12921 }
12922
12923 public short getThriftFieldId() {
12924 return _thriftId;
12925 }
12926
12927 public String getFieldName() {
12928 return _fieldName;
12929 }
12930 }
12931
12932
12933 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12934 static {
12935 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12936 tmpMap.put(_Fields.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", org.apache.thrift.TFieldRequirementType.DEFAULT,
12937 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
12938 metaDataMap = Collections.unmodifiableMap(tmpMap);
12939 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(listRemovedRepositories_args.class, metaDataMap);
12940 }
12941
12942 public listRemovedRepositories_args() {
12943 }
12944
12945 public listRemovedRepositories_args(
12946 String projectName)
12947 {
12948 this();
12949 this.projectName = projectName;
12950 }
12951
12952
12953
12954
12955 public listRemovedRepositories_args(listRemovedRepositories_args other) {
12956 if (other.isSetProjectName()) {
12957 this.projectName = other.projectName;
12958 }
12959 }
12960
12961 public listRemovedRepositories_args deepCopy() {
12962 return new listRemovedRepositories_args(this);
12963 }
12964
12965 @Override
12966 public void clear() {
12967 this.projectName = null;
12968 }
12969
12970 public String getProjectName() {
12971 return this.projectName;
12972 }
12973
12974 public listRemovedRepositories_args setProjectName(String projectName) {
12975 this.projectName = projectName;
12976 return this;
12977 }
12978
12979 public void unsetProjectName() {
12980 this.projectName = null;
12981 }
12982
12983
12984 public boolean isSetProjectName() {
12985 return this.projectName != null;
12986 }
12987
12988 public void setProjectNameIsSet(boolean value) {
12989 if (!value) {
12990 this.projectName = null;
12991 }
12992 }
12993
12994 public void setFieldValue(_Fields field, Object value) {
12995 switch (field) {
12996 case PROJECT_NAME:
12997 if (value == null) {
12998 unsetProjectName();
12999 } else {
13000 setProjectName((String)value);
13001 }
13002 break;
13003
13004 }
13005 }
13006
13007 public Object getFieldValue(_Fields field) {
13008 switch (field) {
13009 case PROJECT_NAME:
13010 return getProjectName();
13011
13012 }
13013 throw new IllegalStateException();
13014 }
13015
13016
13017 public boolean isSet(_Fields field) {
13018 if (field == null) {
13019 throw new IllegalArgumentException();
13020 }
13021
13022 switch (field) {
13023 case PROJECT_NAME:
13024 return isSetProjectName();
13025 }
13026 throw new IllegalStateException();
13027 }
13028
13029 @Override
13030 public boolean equals(Object that) {
13031 if (that == null)
13032 return false;
13033 if (that instanceof listRemovedRepositories_args)
13034 return this.equals((listRemovedRepositories_args)that);
13035 return false;
13036 }
13037
13038 public boolean equals(listRemovedRepositories_args that) {
13039 if (that == null)
13040 return false;
13041
13042 boolean this_present_projectName = true && this.isSetProjectName();
13043 boolean that_present_projectName = true && that.isSetProjectName();
13044 if (this_present_projectName || that_present_projectName) {
13045 if (!(this_present_projectName && that_present_projectName))
13046 return false;
13047 if (!this.projectName.equals(that.projectName))
13048 return false;
13049 }
13050
13051 return true;
13052 }
13053
13054 @Override
13055 public int hashCode() {
13056 List<Object> list = new ArrayList<Object>();
13057
13058 boolean present_projectName = true && (isSetProjectName());
13059 list.add(present_projectName);
13060 if (present_projectName)
13061 list.add(projectName);
13062
13063 return list.hashCode();
13064 }
13065
13066 @Override
13067 public int compareTo(listRemovedRepositories_args other) {
13068 if (!getClass().equals(other.getClass())) {
13069 return getClass().getName().compareTo(other.getClass().getName());
13070 }
13071
13072 int lastComparison = 0;
13073
13074 lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName());
13075 if (lastComparison != 0) {
13076 return lastComparison;
13077 }
13078 if (isSetProjectName()) {
13079 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName);
13080 if (lastComparison != 0) {
13081 return lastComparison;
13082 }
13083 }
13084 return 0;
13085 }
13086
13087 public _Fields fieldForId(int fieldId) {
13088 return _Fields.findByThriftId(fieldId);
13089 }
13090
13091 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13092 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
13093 }
13094
13095 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13096 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
13097 }
13098
13099 @Override
13100 public String toString() {
13101 StringBuilder sb = new StringBuilder("listRemovedRepositories_args(");
13102 boolean first = true;
13103
13104 sb.append("projectName:");
13105 if (this.projectName == null) {
13106 sb.append("null");
13107 } else {
13108 sb.append(this.projectName);
13109 }
13110 first = false;
13111 sb.append(")");
13112 return sb.toString();
13113 }
13114
13115 public void validate() throws org.apache.thrift.TException {
13116
13117
13118 }
13119
13120 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13121 try {
13122 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13123 } catch (org.apache.thrift.TException te) {
13124 throw new java.io.IOException(te);
13125 }
13126 }
13127
13128 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13129 try {
13130 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13131 } catch (org.apache.thrift.TException te) {
13132 throw new java.io.IOException(te);
13133 }
13134 }
13135
13136 private static class listRemovedRepositories_argsStandardSchemeFactory implements SchemeFactory {
13137 public listRemovedRepositories_argsStandardScheme getScheme() {
13138 return new listRemovedRepositories_argsStandardScheme();
13139 }
13140 }
13141
13142 private static class listRemovedRepositories_argsStandardScheme extends StandardScheme<listRemovedRepositories_args> {
13143
13144 public void read(org.apache.thrift.protocol.TProtocol iprot, listRemovedRepositories_args struct) throws org.apache.thrift.TException {
13145 org.apache.thrift.protocol.TField schemeField;
13146 iprot.readStructBegin();
13147 while (true)
13148 {
13149 schemeField = iprot.readFieldBegin();
13150 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
13151 break;
13152 }
13153 switch (schemeField.id) {
13154 case 1:
13155 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
13156 struct.projectName = iprot.readString();
13157 struct.setProjectNameIsSet(true);
13158 } else {
13159 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13160 }
13161 break;
13162 default:
13163 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13164 }
13165 iprot.readFieldEnd();
13166 }
13167 iprot.readStructEnd();
13168
13169
13170 struct.validate();
13171 }
13172
13173 public void write(org.apache.thrift.protocol.TProtocol oprot, listRemovedRepositories_args struct) throws org.apache.thrift.TException {
13174 struct.validate();
13175
13176 oprot.writeStructBegin(STRUCT_DESC);
13177 if (struct.projectName != null) {
13178 oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC);
13179 oprot.writeString(struct.projectName);
13180 oprot.writeFieldEnd();
13181 }
13182 oprot.writeFieldStop();
13183 oprot.writeStructEnd();
13184 }
13185
13186 }
13187
13188 private static class listRemovedRepositories_argsTupleSchemeFactory implements SchemeFactory {
13189 public listRemovedRepositories_argsTupleScheme getScheme() {
13190 return new listRemovedRepositories_argsTupleScheme();
13191 }
13192 }
13193
13194 private static class listRemovedRepositories_argsTupleScheme extends TupleScheme<listRemovedRepositories_args> {
13195
13196 @Override
13197 public void write(org.apache.thrift.protocol.TProtocol prot, listRemovedRepositories_args struct) throws org.apache.thrift.TException {
13198 TTupleProtocol oprot = (TTupleProtocol) prot;
13199 BitSet optionals = new BitSet();
13200 if (struct.isSetProjectName()) {
13201 optionals.set(0);
13202 }
13203 oprot.writeBitSet(optionals, 1);
13204 if (struct.isSetProjectName()) {
13205 oprot.writeString(struct.projectName);
13206 }
13207 }
13208
13209 @Override
13210 public void read(org.apache.thrift.protocol.TProtocol prot, listRemovedRepositories_args struct) throws org.apache.thrift.TException {
13211 TTupleProtocol iprot = (TTupleProtocol) prot;
13212 BitSet incoming = iprot.readBitSet(1);
13213 if (incoming.get(0)) {
13214 struct.projectName = iprot.readString();
13215 struct.setProjectNameIsSet(true);
13216 }
13217 }
13218 }
13219
13220 }
13221
13222 public static class listRemovedRepositories_result implements org.apache.thrift.TBase<listRemovedRepositories_result, listRemovedRepositories_result._Fields>, java.io.Serializable, Cloneable, Comparable<listRemovedRepositories_result> {
13223 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("listRemovedRepositories_result");
13224
13225 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.SET, (short)0);
13226 private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
13227
13228 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
13229 static {
13230 schemes.put(StandardScheme.class, new listRemovedRepositories_resultStandardSchemeFactory());
13231 schemes.put(TupleScheme.class, new listRemovedRepositories_resultTupleSchemeFactory());
13232 }
13233
13234 public Set<String> success;
13235 public CentralDogmaException e;
13236
13237
13238 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13239 SUCCESS((short)0, "success"),
13240 E((short)1, "e");
13241
13242 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13243
13244 static {
13245 for (_Fields field : EnumSet.allOf(_Fields.class)) {
13246 byName.put(field.getFieldName(), field);
13247 }
13248 }
13249
13250
13251
13252
13253 public static _Fields findByThriftId(int fieldId) {
13254 switch(fieldId) {
13255 case 0:
13256 return SUCCESS;
13257 case 1:
13258 return E;
13259 default:
13260 return null;
13261 }
13262 }
13263
13264
13265
13266
13267
13268 public static _Fields findByThriftIdOrThrow(int fieldId) {
13269 _Fields fields = findByThriftId(fieldId);
13270 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13271 return fields;
13272 }
13273
13274
13275
13276
13277 public static _Fields findByName(String name) {
13278 return byName.get(name);
13279 }
13280
13281 private final short _thriftId;
13282 private final String _fieldName;
13283
13284 _Fields(short thriftId, String fieldName) {
13285 _thriftId = thriftId;
13286 _fieldName = fieldName;
13287 }
13288
13289 public short getThriftFieldId() {
13290 return _thriftId;
13291 }
13292
13293 public String getFieldName() {
13294 return _fieldName;
13295 }
13296 }
13297
13298
13299 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13300 static {
13301 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13302 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
13303 new org.apache.thrift.meta_data.SetMetaData(org.apache.thrift.protocol.TType.SET,
13304 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
13305 tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
13306 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
13307 metaDataMap = Collections.unmodifiableMap(tmpMap);
13308 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(listRemovedRepositories_result.class, metaDataMap);
13309 }
13310
13311 public listRemovedRepositories_result() {
13312 }
13313
13314 public listRemovedRepositories_result(
13315 Set<String> success,
13316 CentralDogmaException e)
13317 {
13318 this();
13319 this.success = success;
13320 this.e = e;
13321 }
13322
13323
13324
13325
13326 public listRemovedRepositories_result(listRemovedRepositories_result other) {
13327 if (other.isSetSuccess()) {
13328 Set<String> __this__success = new HashSet<String>(other.success);
13329 this.success = __this__success;
13330 }
13331 if (other.isSetE()) {
13332 this.e = new CentralDogmaException(other.e);
13333 }
13334 }
13335
13336 public listRemovedRepositories_result deepCopy() {
13337 return new listRemovedRepositories_result(this);
13338 }
13339
13340 @Override
13341 public void clear() {
13342 this.success = null;
13343 this.e = null;
13344 }
13345
13346 public int getSuccessSize() {
13347 return (this.success == null) ? 0 : this.success.size();
13348 }
13349
13350 public java.util.Iterator<String> getSuccessIterator() {
13351 return (this.success == null) ? null : this.success.iterator();
13352 }
13353
13354 public void addToSuccess(String elem) {
13355 if (this.success == null) {
13356 this.success = new HashSet<String>();
13357 }
13358 this.success.add(elem);
13359 }
13360
13361 public Set<String> getSuccess() {
13362 return this.success;
13363 }
13364
13365 public listRemovedRepositories_result setSuccess(Set<String> success) {
13366 this.success = success;
13367 return this;
13368 }
13369
13370 public void unsetSuccess() {
13371 this.success = null;
13372 }
13373
13374
13375 public boolean isSetSuccess() {
13376 return this.success != null;
13377 }
13378
13379 public void setSuccessIsSet(boolean value) {
13380 if (!value) {
13381 this.success = null;
13382 }
13383 }
13384
13385 public CentralDogmaException getE() {
13386 return this.e;
13387 }
13388
13389 public listRemovedRepositories_result setE(CentralDogmaException e) {
13390 this.e = e;
13391 return this;
13392 }
13393
13394 public void unsetE() {
13395 this.e = null;
13396 }
13397
13398
13399 public boolean isSetE() {
13400 return this.e != null;
13401 }
13402
13403 public void setEIsSet(boolean value) {
13404 if (!value) {
13405 this.e = null;
13406 }
13407 }
13408
13409 public void setFieldValue(_Fields field, Object value) {
13410 switch (field) {
13411 case SUCCESS:
13412 if (value == null) {
13413 unsetSuccess();
13414 } else {
13415 setSuccess((Set<String>)value);
13416 }
13417 break;
13418
13419 case E:
13420 if (value == null) {
13421 unsetE();
13422 } else {
13423 setE((CentralDogmaException)value);
13424 }
13425 break;
13426
13427 }
13428 }
13429
13430 public Object getFieldValue(_Fields field) {
13431 switch (field) {
13432 case SUCCESS:
13433 return getSuccess();
13434
13435 case E:
13436 return getE();
13437
13438 }
13439 throw new IllegalStateException();
13440 }
13441
13442
13443 public boolean isSet(_Fields field) {
13444 if (field == null) {
13445 throw new IllegalArgumentException();
13446 }
13447
13448 switch (field) {
13449 case SUCCESS:
13450 return isSetSuccess();
13451 case E:
13452 return isSetE();
13453 }
13454 throw new IllegalStateException();
13455 }
13456
13457 @Override
13458 public boolean equals(Object that) {
13459 if (that == null)
13460 return false;
13461 if (that instanceof listRemovedRepositories_result)
13462 return this.equals((listRemovedRepositories_result)that);
13463 return false;
13464 }
13465
13466 public boolean equals(listRemovedRepositories_result that) {
13467 if (that == null)
13468 return false;
13469
13470 boolean this_present_success = true && this.isSetSuccess();
13471 boolean that_present_success = true && that.isSetSuccess();
13472 if (this_present_success || that_present_success) {
13473 if (!(this_present_success && that_present_success))
13474 return false;
13475 if (!this.success.equals(that.success))
13476 return false;
13477 }
13478
13479 boolean this_present_e = true && this.isSetE();
13480 boolean that_present_e = true && that.isSetE();
13481 if (this_present_e || that_present_e) {
13482 if (!(this_present_e && that_present_e))
13483 return false;
13484 if (!this.e.equals(that.e))
13485 return false;
13486 }
13487
13488 return true;
13489 }
13490
13491 @Override
13492 public int hashCode() {
13493 List<Object> list = new ArrayList<Object>();
13494
13495 boolean present_success = true && (isSetSuccess());
13496 list.add(present_success);
13497 if (present_success)
13498 list.add(success);
13499
13500 boolean present_e = true && (isSetE());
13501 list.add(present_e);
13502 if (present_e)
13503 list.add(e);
13504
13505 return list.hashCode();
13506 }
13507
13508 @Override
13509 public int compareTo(listRemovedRepositories_result other) {
13510 if (!getClass().equals(other.getClass())) {
13511 return getClass().getName().compareTo(other.getClass().getName());
13512 }
13513
13514 int lastComparison = 0;
13515
13516 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
13517 if (lastComparison != 0) {
13518 return lastComparison;
13519 }
13520 if (isSetSuccess()) {
13521 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
13522 if (lastComparison != 0) {
13523 return lastComparison;
13524 }
13525 }
13526 lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE());
13527 if (lastComparison != 0) {
13528 return lastComparison;
13529 }
13530 if (isSetE()) {
13531 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e);
13532 if (lastComparison != 0) {
13533 return lastComparison;
13534 }
13535 }
13536 return 0;
13537 }
13538
13539 public _Fields fieldForId(int fieldId) {
13540 return _Fields.findByThriftId(fieldId);
13541 }
13542
13543 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13544 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
13545 }
13546
13547 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13548 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
13549 }
13550
13551 @Override
13552 public String toString() {
13553 StringBuilder sb = new StringBuilder("listRemovedRepositories_result(");
13554 boolean first = true;
13555
13556 sb.append("success:");
13557 if (this.success == null) {
13558 sb.append("null");
13559 } else {
13560 sb.append(this.success);
13561 }
13562 first = false;
13563 if (!first) sb.append(", ");
13564 sb.append("e:");
13565 if (this.e == null) {
13566 sb.append("null");
13567 } else {
13568 sb.append(this.e);
13569 }
13570 first = false;
13571 sb.append(")");
13572 return sb.toString();
13573 }
13574
13575 public void validate() throws org.apache.thrift.TException {
13576
13577
13578 }
13579
13580 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13581 try {
13582 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13583 } catch (org.apache.thrift.TException te) {
13584 throw new java.io.IOException(te);
13585 }
13586 }
13587
13588 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13589 try {
13590 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13591 } catch (org.apache.thrift.TException te) {
13592 throw new java.io.IOException(te);
13593 }
13594 }
13595
13596 private static class listRemovedRepositories_resultStandardSchemeFactory implements SchemeFactory {
13597 public listRemovedRepositories_resultStandardScheme getScheme() {
13598 return new listRemovedRepositories_resultStandardScheme();
13599 }
13600 }
13601
13602 private static class listRemovedRepositories_resultStandardScheme extends StandardScheme<listRemovedRepositories_result> {
13603
13604 public void read(org.apache.thrift.protocol.TProtocol iprot, listRemovedRepositories_result struct) throws org.apache.thrift.TException {
13605 org.apache.thrift.protocol.TField schemeField;
13606 iprot.readStructBegin();
13607 while (true)
13608 {
13609 schemeField = iprot.readFieldBegin();
13610 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
13611 break;
13612 }
13613 switch (schemeField.id) {
13614 case 0:
13615 if (schemeField.type == org.apache.thrift.protocol.TType.SET) {
13616 {
13617 org.apache.thrift.protocol.TSet _set96 = iprot.readSetBegin();
13618 struct.success = new HashSet<String>(2*_set96.size);
13619 String _elem97;
13620 for (int _i98 = 0; _i98 < _set96.size; ++_i98)
13621 {
13622 _elem97 = iprot.readString();
13623 struct.success.add(_elem97);
13624 }
13625 iprot.readSetEnd();
13626 }
13627 struct.setSuccessIsSet(true);
13628 } else {
13629 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13630 }
13631 break;
13632 case 1:
13633 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
13634 struct.e = new CentralDogmaException();
13635 struct.e.read(iprot);
13636 struct.setEIsSet(true);
13637 } else {
13638 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13639 }
13640 break;
13641 default:
13642 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13643 }
13644 iprot.readFieldEnd();
13645 }
13646 iprot.readStructEnd();
13647
13648
13649 struct.validate();
13650 }
13651
13652 public void write(org.apache.thrift.protocol.TProtocol oprot, listRemovedRepositories_result struct) throws org.apache.thrift.TException {
13653 struct.validate();
13654
13655 oprot.writeStructBegin(STRUCT_DESC);
13656 if (struct.success != null) {
13657 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13658 {
13659 oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, struct.success.size()));
13660 for (String _iter99 : struct.success)
13661 {
13662 oprot.writeString(_iter99);
13663 }
13664 oprot.writeSetEnd();
13665 }
13666 oprot.writeFieldEnd();
13667 }
13668 if (struct.e != null) {
13669 oprot.writeFieldBegin(E_FIELD_DESC);
13670 struct.e.write(oprot);
13671 oprot.writeFieldEnd();
13672 }
13673 oprot.writeFieldStop();
13674 oprot.writeStructEnd();
13675 }
13676
13677 }
13678
13679 private static class listRemovedRepositories_resultTupleSchemeFactory implements SchemeFactory {
13680 public listRemovedRepositories_resultTupleScheme getScheme() {
13681 return new listRemovedRepositories_resultTupleScheme();
13682 }
13683 }
13684
13685 private static class listRemovedRepositories_resultTupleScheme extends TupleScheme<listRemovedRepositories_result> {
13686
13687 @Override
13688 public void write(org.apache.thrift.protocol.TProtocol prot, listRemovedRepositories_result struct) throws org.apache.thrift.TException {
13689 TTupleProtocol oprot = (TTupleProtocol) prot;
13690 BitSet optionals = new BitSet();
13691 if (struct.isSetSuccess()) {
13692 optionals.set(0);
13693 }
13694 if (struct.isSetE()) {
13695 optionals.set(1);
13696 }
13697 oprot.writeBitSet(optionals, 2);
13698 if (struct.isSetSuccess()) {
13699 {
13700 oprot.writeI32(struct.success.size());
13701 for (String _iter100 : struct.success)
13702 {
13703 oprot.writeString(_iter100);
13704 }
13705 }
13706 }
13707 if (struct.isSetE()) {
13708 struct.e.write(oprot);
13709 }
13710 }
13711
13712 @Override
13713 public void read(org.apache.thrift.protocol.TProtocol prot, listRemovedRepositories_result struct) throws org.apache.thrift.TException {
13714 TTupleProtocol iprot = (TTupleProtocol) prot;
13715 BitSet incoming = iprot.readBitSet(2);
13716 if (incoming.get(0)) {
13717 {
13718 org.apache.thrift.protocol.TSet _set101 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
13719 struct.success = new HashSet<String>(2*_set101.size);
13720 String _elem102;
13721 for (int _i103 = 0; _i103 < _set101.size; ++_i103)
13722 {
13723 _elem102 = iprot.readString();
13724 struct.success.add(_elem102);
13725 }
13726 }
13727 struct.setSuccessIsSet(true);
13728 }
13729 if (incoming.get(1)) {
13730 struct.e = new CentralDogmaException();
13731 struct.e.read(iprot);
13732 struct.setEIsSet(true);
13733 }
13734 }
13735 }
13736
13737 }
13738
13739 public static class normalizeRevision_args implements org.apache.thrift.TBase<normalizeRevision_args, normalizeRevision_args._Fields>, java.io.Serializable, Cloneable, Comparable<normalizeRevision_args> {
13740 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("normalizeRevision_args");
13741
13742 private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)1);
13743 private static final org.apache.thrift.protocol.TField REPOSITORY_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("repositoryName", org.apache.thrift.protocol.TType.STRING, (short)2);
13744 private static final org.apache.thrift.protocol.TField REVISION_FIELD_DESC = new org.apache.thrift.protocol.TField("revision", org.apache.thrift.protocol.TType.STRUCT, (short)3);
13745
13746 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
13747 static {
13748 schemes.put(StandardScheme.class, new normalizeRevision_argsStandardSchemeFactory());
13749 schemes.put(TupleScheme.class, new normalizeRevision_argsTupleSchemeFactory());
13750 }
13751
13752 public String projectName;
13753 public String repositoryName;
13754 public Revision revision;
13755
13756
13757 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13758 PROJECT_NAME((short)1, "projectName"),
13759 REPOSITORY_NAME((short)2, "repositoryName"),
13760 REVISION((short)3, "revision");
13761
13762 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13763
13764 static {
13765 for (_Fields field : EnumSet.allOf(_Fields.class)) {
13766 byName.put(field.getFieldName(), field);
13767 }
13768 }
13769
13770
13771
13772
13773 public static _Fields findByThriftId(int fieldId) {
13774 switch(fieldId) {
13775 case 1:
13776 return PROJECT_NAME;
13777 case 2:
13778 return REPOSITORY_NAME;
13779 case 3:
13780 return REVISION;
13781 default:
13782 return null;
13783 }
13784 }
13785
13786
13787
13788
13789
13790 public static _Fields findByThriftIdOrThrow(int fieldId) {
13791 _Fields fields = findByThriftId(fieldId);
13792 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13793 return fields;
13794 }
13795
13796
13797
13798
13799 public static _Fields findByName(String name) {
13800 return byName.get(name);
13801 }
13802
13803 private final short _thriftId;
13804 private final String _fieldName;
13805
13806 _Fields(short thriftId, String fieldName) {
13807 _thriftId = thriftId;
13808 _fieldName = fieldName;
13809 }
13810
13811 public short getThriftFieldId() {
13812 return _thriftId;
13813 }
13814
13815 public String getFieldName() {
13816 return _fieldName;
13817 }
13818 }
13819
13820
13821 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13822 static {
13823 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13824 tmpMap.put(_Fields.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", org.apache.thrift.TFieldRequirementType.DEFAULT,
13825 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
13826 tmpMap.put(_Fields.REPOSITORY_NAME, new org.apache.thrift.meta_data.FieldMetaData("repositoryName", org.apache.thrift.TFieldRequirementType.DEFAULT,
13827 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
13828 tmpMap.put(_Fields.REVISION, new org.apache.thrift.meta_data.FieldMetaData("revision", org.apache.thrift.TFieldRequirementType.DEFAULT,
13829 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Revision.class)));
13830 metaDataMap = Collections.unmodifiableMap(tmpMap);
13831 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(normalizeRevision_args.class, metaDataMap);
13832 }
13833
13834 public normalizeRevision_args() {
13835 }
13836
13837 public normalizeRevision_args(
13838 String projectName,
13839 String repositoryName,
13840 Revision revision)
13841 {
13842 this();
13843 this.projectName = projectName;
13844 this.repositoryName = repositoryName;
13845 this.revision = revision;
13846 }
13847
13848
13849
13850
13851 public normalizeRevision_args(normalizeRevision_args other) {
13852 if (other.isSetProjectName()) {
13853 this.projectName = other.projectName;
13854 }
13855 if (other.isSetRepositoryName()) {
13856 this.repositoryName = other.repositoryName;
13857 }
13858 if (other.isSetRevision()) {
13859 this.revision = new Revision(other.revision);
13860 }
13861 }
13862
13863 public normalizeRevision_args deepCopy() {
13864 return new normalizeRevision_args(this);
13865 }
13866
13867 @Override
13868 public void clear() {
13869 this.projectName = null;
13870 this.repositoryName = null;
13871 this.revision = null;
13872 }
13873
13874 public String getProjectName() {
13875 return this.projectName;
13876 }
13877
13878 public normalizeRevision_args setProjectName(String projectName) {
13879 this.projectName = projectName;
13880 return this;
13881 }
13882
13883 public void unsetProjectName() {
13884 this.projectName = null;
13885 }
13886
13887
13888 public boolean isSetProjectName() {
13889 return this.projectName != null;
13890 }
13891
13892 public void setProjectNameIsSet(boolean value) {
13893 if (!value) {
13894 this.projectName = null;
13895 }
13896 }
13897
13898 public String getRepositoryName() {
13899 return this.repositoryName;
13900 }
13901
13902 public normalizeRevision_args setRepositoryName(String repositoryName) {
13903 this.repositoryName = repositoryName;
13904 return this;
13905 }
13906
13907 public void unsetRepositoryName() {
13908 this.repositoryName = null;
13909 }
13910
13911
13912 public boolean isSetRepositoryName() {
13913 return this.repositoryName != null;
13914 }
13915
13916 public void setRepositoryNameIsSet(boolean value) {
13917 if (!value) {
13918 this.repositoryName = null;
13919 }
13920 }
13921
13922 public Revision getRevision() {
13923 return this.revision;
13924 }
13925
13926 public normalizeRevision_args setRevision(Revision revision) {
13927 this.revision = revision;
13928 return this;
13929 }
13930
13931 public void unsetRevision() {
13932 this.revision = null;
13933 }
13934
13935
13936 public boolean isSetRevision() {
13937 return this.revision != null;
13938 }
13939
13940 public void setRevisionIsSet(boolean value) {
13941 if (!value) {
13942 this.revision = null;
13943 }
13944 }
13945
13946 public void setFieldValue(_Fields field, Object value) {
13947 switch (field) {
13948 case PROJECT_NAME:
13949 if (value == null) {
13950 unsetProjectName();
13951 } else {
13952 setProjectName((String)value);
13953 }
13954 break;
13955
13956 case REPOSITORY_NAME:
13957 if (value == null) {
13958 unsetRepositoryName();
13959 } else {
13960 setRepositoryName((String)value);
13961 }
13962 break;
13963
13964 case REVISION:
13965 if (value == null) {
13966 unsetRevision();
13967 } else {
13968 setRevision((Revision)value);
13969 }
13970 break;
13971
13972 }
13973 }
13974
13975 public Object getFieldValue(_Fields field) {
13976 switch (field) {
13977 case PROJECT_NAME:
13978 return getProjectName();
13979
13980 case REPOSITORY_NAME:
13981 return getRepositoryName();
13982
13983 case REVISION:
13984 return getRevision();
13985
13986 }
13987 throw new IllegalStateException();
13988 }
13989
13990
13991 public boolean isSet(_Fields field) {
13992 if (field == null) {
13993 throw new IllegalArgumentException();
13994 }
13995
13996 switch (field) {
13997 case PROJECT_NAME:
13998 return isSetProjectName();
13999 case REPOSITORY_NAME:
14000 return isSetRepositoryName();
14001 case REVISION:
14002 return isSetRevision();
14003 }
14004 throw new IllegalStateException();
14005 }
14006
14007 @Override
14008 public boolean equals(Object that) {
14009 if (that == null)
14010 return false;
14011 if (that instanceof normalizeRevision_args)
14012 return this.equals((normalizeRevision_args)that);
14013 return false;
14014 }
14015
14016 public boolean equals(normalizeRevision_args that) {
14017 if (that == null)
14018 return false;
14019
14020 boolean this_present_projectName = true && this.isSetProjectName();
14021 boolean that_present_projectName = true && that.isSetProjectName();
14022 if (this_present_projectName || that_present_projectName) {
14023 if (!(this_present_projectName && that_present_projectName))
14024 return false;
14025 if (!this.projectName.equals(that.projectName))
14026 return false;
14027 }
14028
14029 boolean this_present_repositoryName = true && this.isSetRepositoryName();
14030 boolean that_present_repositoryName = true && that.isSetRepositoryName();
14031 if (this_present_repositoryName || that_present_repositoryName) {
14032 if (!(this_present_repositoryName && that_present_repositoryName))
14033 return false;
14034 if (!this.repositoryName.equals(that.repositoryName))
14035 return false;
14036 }
14037
14038 boolean this_present_revision = true && this.isSetRevision();
14039 boolean that_present_revision = true && that.isSetRevision();
14040 if (this_present_revision || that_present_revision) {
14041 if (!(this_present_revision && that_present_revision))
14042 return false;
14043 if (!this.revision.equals(that.revision))
14044 return false;
14045 }
14046
14047 return true;
14048 }
14049
14050 @Override
14051 public int hashCode() {
14052 List<Object> list = new ArrayList<Object>();
14053
14054 boolean present_projectName = true && (isSetProjectName());
14055 list.add(present_projectName);
14056 if (present_projectName)
14057 list.add(projectName);
14058
14059 boolean present_repositoryName = true && (isSetRepositoryName());
14060 list.add(present_repositoryName);
14061 if (present_repositoryName)
14062 list.add(repositoryName);
14063
14064 boolean present_revision = true && (isSetRevision());
14065 list.add(present_revision);
14066 if (present_revision)
14067 list.add(revision);
14068
14069 return list.hashCode();
14070 }
14071
14072 @Override
14073 public int compareTo(normalizeRevision_args other) {
14074 if (!getClass().equals(other.getClass())) {
14075 return getClass().getName().compareTo(other.getClass().getName());
14076 }
14077
14078 int lastComparison = 0;
14079
14080 lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName());
14081 if (lastComparison != 0) {
14082 return lastComparison;
14083 }
14084 if (isSetProjectName()) {
14085 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName);
14086 if (lastComparison != 0) {
14087 return lastComparison;
14088 }
14089 }
14090 lastComparison = Boolean.valueOf(isSetRepositoryName()).compareTo(other.isSetRepositoryName());
14091 if (lastComparison != 0) {
14092 return lastComparison;
14093 }
14094 if (isSetRepositoryName()) {
14095 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.repositoryName, other.repositoryName);
14096 if (lastComparison != 0) {
14097 return lastComparison;
14098 }
14099 }
14100 lastComparison = Boolean.valueOf(isSetRevision()).compareTo(other.isSetRevision());
14101 if (lastComparison != 0) {
14102 return lastComparison;
14103 }
14104 if (isSetRevision()) {
14105 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.revision, other.revision);
14106 if (lastComparison != 0) {
14107 return lastComparison;
14108 }
14109 }
14110 return 0;
14111 }
14112
14113 public _Fields fieldForId(int fieldId) {
14114 return _Fields.findByThriftId(fieldId);
14115 }
14116
14117 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14118 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
14119 }
14120
14121 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14122 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
14123 }
14124
14125 @Override
14126 public String toString() {
14127 StringBuilder sb = new StringBuilder("normalizeRevision_args(");
14128 boolean first = true;
14129
14130 sb.append("projectName:");
14131 if (this.projectName == null) {
14132 sb.append("null");
14133 } else {
14134 sb.append(this.projectName);
14135 }
14136 first = false;
14137 if (!first) sb.append(", ");
14138 sb.append("repositoryName:");
14139 if (this.repositoryName == null) {
14140 sb.append("null");
14141 } else {
14142 sb.append(this.repositoryName);
14143 }
14144 first = false;
14145 if (!first) sb.append(", ");
14146 sb.append("revision:");
14147 if (this.revision == null) {
14148 sb.append("null");
14149 } else {
14150 sb.append(this.revision);
14151 }
14152 first = false;
14153 sb.append(")");
14154 return sb.toString();
14155 }
14156
14157 public void validate() throws org.apache.thrift.TException {
14158
14159
14160 if (revision != null) {
14161 revision.validate();
14162 }
14163 }
14164
14165 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14166 try {
14167 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14168 } catch (org.apache.thrift.TException te) {
14169 throw new java.io.IOException(te);
14170 }
14171 }
14172
14173 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14174 try {
14175 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14176 } catch (org.apache.thrift.TException te) {
14177 throw new java.io.IOException(te);
14178 }
14179 }
14180
14181 private static class normalizeRevision_argsStandardSchemeFactory implements SchemeFactory {
14182 public normalizeRevision_argsStandardScheme getScheme() {
14183 return new normalizeRevision_argsStandardScheme();
14184 }
14185 }
14186
14187 private static class normalizeRevision_argsStandardScheme extends StandardScheme<normalizeRevision_args> {
14188
14189 public void read(org.apache.thrift.protocol.TProtocol iprot, normalizeRevision_args struct) throws org.apache.thrift.TException {
14190 org.apache.thrift.protocol.TField schemeField;
14191 iprot.readStructBegin();
14192 while (true)
14193 {
14194 schemeField = iprot.readFieldBegin();
14195 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
14196 break;
14197 }
14198 switch (schemeField.id) {
14199 case 1:
14200 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
14201 struct.projectName = iprot.readString();
14202 struct.setProjectNameIsSet(true);
14203 } else {
14204 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14205 }
14206 break;
14207 case 2:
14208 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
14209 struct.repositoryName = iprot.readString();
14210 struct.setRepositoryNameIsSet(true);
14211 } else {
14212 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14213 }
14214 break;
14215 case 3:
14216 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
14217 struct.revision = new Revision();
14218 struct.revision.read(iprot);
14219 struct.setRevisionIsSet(true);
14220 } else {
14221 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14222 }
14223 break;
14224 default:
14225 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14226 }
14227 iprot.readFieldEnd();
14228 }
14229 iprot.readStructEnd();
14230
14231
14232 struct.validate();
14233 }
14234
14235 public void write(org.apache.thrift.protocol.TProtocol oprot, normalizeRevision_args struct) throws org.apache.thrift.TException {
14236 struct.validate();
14237
14238 oprot.writeStructBegin(STRUCT_DESC);
14239 if (struct.projectName != null) {
14240 oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC);
14241 oprot.writeString(struct.projectName);
14242 oprot.writeFieldEnd();
14243 }
14244 if (struct.repositoryName != null) {
14245 oprot.writeFieldBegin(REPOSITORY_NAME_FIELD_DESC);
14246 oprot.writeString(struct.repositoryName);
14247 oprot.writeFieldEnd();
14248 }
14249 if (struct.revision != null) {
14250 oprot.writeFieldBegin(REVISION_FIELD_DESC);
14251 struct.revision.write(oprot);
14252 oprot.writeFieldEnd();
14253 }
14254 oprot.writeFieldStop();
14255 oprot.writeStructEnd();
14256 }
14257
14258 }
14259
14260 private static class normalizeRevision_argsTupleSchemeFactory implements SchemeFactory {
14261 public normalizeRevision_argsTupleScheme getScheme() {
14262 return new normalizeRevision_argsTupleScheme();
14263 }
14264 }
14265
14266 private static class normalizeRevision_argsTupleScheme extends TupleScheme<normalizeRevision_args> {
14267
14268 @Override
14269 public void write(org.apache.thrift.protocol.TProtocol prot, normalizeRevision_args struct) throws org.apache.thrift.TException {
14270 TTupleProtocol oprot = (TTupleProtocol) prot;
14271 BitSet optionals = new BitSet();
14272 if (struct.isSetProjectName()) {
14273 optionals.set(0);
14274 }
14275 if (struct.isSetRepositoryName()) {
14276 optionals.set(1);
14277 }
14278 if (struct.isSetRevision()) {
14279 optionals.set(2);
14280 }
14281 oprot.writeBitSet(optionals, 3);
14282 if (struct.isSetProjectName()) {
14283 oprot.writeString(struct.projectName);
14284 }
14285 if (struct.isSetRepositoryName()) {
14286 oprot.writeString(struct.repositoryName);
14287 }
14288 if (struct.isSetRevision()) {
14289 struct.revision.write(oprot);
14290 }
14291 }
14292
14293 @Override
14294 public void read(org.apache.thrift.protocol.TProtocol prot, normalizeRevision_args struct) throws org.apache.thrift.TException {
14295 TTupleProtocol iprot = (TTupleProtocol) prot;
14296 BitSet incoming = iprot.readBitSet(3);
14297 if (incoming.get(0)) {
14298 struct.projectName = iprot.readString();
14299 struct.setProjectNameIsSet(true);
14300 }
14301 if (incoming.get(1)) {
14302 struct.repositoryName = iprot.readString();
14303 struct.setRepositoryNameIsSet(true);
14304 }
14305 if (incoming.get(2)) {
14306 struct.revision = new Revision();
14307 struct.revision.read(iprot);
14308 struct.setRevisionIsSet(true);
14309 }
14310 }
14311 }
14312
14313 }
14314
14315 public static class normalizeRevision_result implements org.apache.thrift.TBase<normalizeRevision_result, normalizeRevision_result._Fields>, java.io.Serializable, Cloneable, Comparable<normalizeRevision_result> {
14316 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("normalizeRevision_result");
14317
14318 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
14319 private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
14320
14321 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
14322 static {
14323 schemes.put(StandardScheme.class, new normalizeRevision_resultStandardSchemeFactory());
14324 schemes.put(TupleScheme.class, new normalizeRevision_resultTupleSchemeFactory());
14325 }
14326
14327 public Revision success;
14328 public CentralDogmaException e;
14329
14330
14331 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14332 SUCCESS((short)0, "success"),
14333 E((short)1, "e");
14334
14335 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14336
14337 static {
14338 for (_Fields field : EnumSet.allOf(_Fields.class)) {
14339 byName.put(field.getFieldName(), field);
14340 }
14341 }
14342
14343
14344
14345
14346 public static _Fields findByThriftId(int fieldId) {
14347 switch(fieldId) {
14348 case 0:
14349 return SUCCESS;
14350 case 1:
14351 return E;
14352 default:
14353 return null;
14354 }
14355 }
14356
14357
14358
14359
14360
14361 public static _Fields findByThriftIdOrThrow(int fieldId) {
14362 _Fields fields = findByThriftId(fieldId);
14363 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14364 return fields;
14365 }
14366
14367
14368
14369
14370 public static _Fields findByName(String name) {
14371 return byName.get(name);
14372 }
14373
14374 private final short _thriftId;
14375 private final String _fieldName;
14376
14377 _Fields(short thriftId, String fieldName) {
14378 _thriftId = thriftId;
14379 _fieldName = fieldName;
14380 }
14381
14382 public short getThriftFieldId() {
14383 return _thriftId;
14384 }
14385
14386 public String getFieldName() {
14387 return _fieldName;
14388 }
14389 }
14390
14391
14392 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14393 static {
14394 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14395 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
14396 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Revision.class)));
14397 tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
14398 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
14399 metaDataMap = Collections.unmodifiableMap(tmpMap);
14400 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(normalizeRevision_result.class, metaDataMap);
14401 }
14402
14403 public normalizeRevision_result() {
14404 }
14405
14406 public normalizeRevision_result(
14407 Revision success,
14408 CentralDogmaException e)
14409 {
14410 this();
14411 this.success = success;
14412 this.e = e;
14413 }
14414
14415
14416
14417
14418 public normalizeRevision_result(normalizeRevision_result other) {
14419 if (other.isSetSuccess()) {
14420 this.success = new Revision(other.success);
14421 }
14422 if (other.isSetE()) {
14423 this.e = new CentralDogmaException(other.e);
14424 }
14425 }
14426
14427 public normalizeRevision_result deepCopy() {
14428 return new normalizeRevision_result(this);
14429 }
14430
14431 @Override
14432 public void clear() {
14433 this.success = null;
14434 this.e = null;
14435 }
14436
14437 public Revision getSuccess() {
14438 return this.success;
14439 }
14440
14441 public normalizeRevision_result setSuccess(Revision success) {
14442 this.success = success;
14443 return this;
14444 }
14445
14446 public void unsetSuccess() {
14447 this.success = null;
14448 }
14449
14450
14451 public boolean isSetSuccess() {
14452 return this.success != null;
14453 }
14454
14455 public void setSuccessIsSet(boolean value) {
14456 if (!value) {
14457 this.success = null;
14458 }
14459 }
14460
14461 public CentralDogmaException getE() {
14462 return this.e;
14463 }
14464
14465 public normalizeRevision_result setE(CentralDogmaException e) {
14466 this.e = e;
14467 return this;
14468 }
14469
14470 public void unsetE() {
14471 this.e = null;
14472 }
14473
14474
14475 public boolean isSetE() {
14476 return this.e != null;
14477 }
14478
14479 public void setEIsSet(boolean value) {
14480 if (!value) {
14481 this.e = null;
14482 }
14483 }
14484
14485 public void setFieldValue(_Fields field, Object value) {
14486 switch (field) {
14487 case SUCCESS:
14488 if (value == null) {
14489 unsetSuccess();
14490 } else {
14491 setSuccess((Revision)value);
14492 }
14493 break;
14494
14495 case E:
14496 if (value == null) {
14497 unsetE();
14498 } else {
14499 setE((CentralDogmaException)value);
14500 }
14501 break;
14502
14503 }
14504 }
14505
14506 public Object getFieldValue(_Fields field) {
14507 switch (field) {
14508 case SUCCESS:
14509 return getSuccess();
14510
14511 case E:
14512 return getE();
14513
14514 }
14515 throw new IllegalStateException();
14516 }
14517
14518
14519 public boolean isSet(_Fields field) {
14520 if (field == null) {
14521 throw new IllegalArgumentException();
14522 }
14523
14524 switch (field) {
14525 case SUCCESS:
14526 return isSetSuccess();
14527 case E:
14528 return isSetE();
14529 }
14530 throw new IllegalStateException();
14531 }
14532
14533 @Override
14534 public boolean equals(Object that) {
14535 if (that == null)
14536 return false;
14537 if (that instanceof normalizeRevision_result)
14538 return this.equals((normalizeRevision_result)that);
14539 return false;
14540 }
14541
14542 public boolean equals(normalizeRevision_result that) {
14543 if (that == null)
14544 return false;
14545
14546 boolean this_present_success = true && this.isSetSuccess();
14547 boolean that_present_success = true && that.isSetSuccess();
14548 if (this_present_success || that_present_success) {
14549 if (!(this_present_success && that_present_success))
14550 return false;
14551 if (!this.success.equals(that.success))
14552 return false;
14553 }
14554
14555 boolean this_present_e = true && this.isSetE();
14556 boolean that_present_e = true && that.isSetE();
14557 if (this_present_e || that_present_e) {
14558 if (!(this_present_e && that_present_e))
14559 return false;
14560 if (!this.e.equals(that.e))
14561 return false;
14562 }
14563
14564 return true;
14565 }
14566
14567 @Override
14568 public int hashCode() {
14569 List<Object> list = new ArrayList<Object>();
14570
14571 boolean present_success = true && (isSetSuccess());
14572 list.add(present_success);
14573 if (present_success)
14574 list.add(success);
14575
14576 boolean present_e = true && (isSetE());
14577 list.add(present_e);
14578 if (present_e)
14579 list.add(e);
14580
14581 return list.hashCode();
14582 }
14583
14584 @Override
14585 public int compareTo(normalizeRevision_result other) {
14586 if (!getClass().equals(other.getClass())) {
14587 return getClass().getName().compareTo(other.getClass().getName());
14588 }
14589
14590 int lastComparison = 0;
14591
14592 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
14593 if (lastComparison != 0) {
14594 return lastComparison;
14595 }
14596 if (isSetSuccess()) {
14597 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
14598 if (lastComparison != 0) {
14599 return lastComparison;
14600 }
14601 }
14602 lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE());
14603 if (lastComparison != 0) {
14604 return lastComparison;
14605 }
14606 if (isSetE()) {
14607 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e);
14608 if (lastComparison != 0) {
14609 return lastComparison;
14610 }
14611 }
14612 return 0;
14613 }
14614
14615 public _Fields fieldForId(int fieldId) {
14616 return _Fields.findByThriftId(fieldId);
14617 }
14618
14619 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14620 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
14621 }
14622
14623 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14624 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
14625 }
14626
14627 @Override
14628 public String toString() {
14629 StringBuilder sb = new StringBuilder("normalizeRevision_result(");
14630 boolean first = true;
14631
14632 sb.append("success:");
14633 if (this.success == null) {
14634 sb.append("null");
14635 } else {
14636 sb.append(this.success);
14637 }
14638 first = false;
14639 if (!first) sb.append(", ");
14640 sb.append("e:");
14641 if (this.e == null) {
14642 sb.append("null");
14643 } else {
14644 sb.append(this.e);
14645 }
14646 first = false;
14647 sb.append(")");
14648 return sb.toString();
14649 }
14650
14651 public void validate() throws org.apache.thrift.TException {
14652
14653
14654 if (success != null) {
14655 success.validate();
14656 }
14657 }
14658
14659 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14660 try {
14661 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14662 } catch (org.apache.thrift.TException te) {
14663 throw new java.io.IOException(te);
14664 }
14665 }
14666
14667 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14668 try {
14669 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14670 } catch (org.apache.thrift.TException te) {
14671 throw new java.io.IOException(te);
14672 }
14673 }
14674
14675 private static class normalizeRevision_resultStandardSchemeFactory implements SchemeFactory {
14676 public normalizeRevision_resultStandardScheme getScheme() {
14677 return new normalizeRevision_resultStandardScheme();
14678 }
14679 }
14680
14681 private static class normalizeRevision_resultStandardScheme extends StandardScheme<normalizeRevision_result> {
14682
14683 public void read(org.apache.thrift.protocol.TProtocol iprot, normalizeRevision_result struct) throws org.apache.thrift.TException {
14684 org.apache.thrift.protocol.TField schemeField;
14685 iprot.readStructBegin();
14686 while (true)
14687 {
14688 schemeField = iprot.readFieldBegin();
14689 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
14690 break;
14691 }
14692 switch (schemeField.id) {
14693 case 0:
14694 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
14695 struct.success = new Revision();
14696 struct.success.read(iprot);
14697 struct.setSuccessIsSet(true);
14698 } else {
14699 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14700 }
14701 break;
14702 case 1:
14703 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
14704 struct.e = new CentralDogmaException();
14705 struct.e.read(iprot);
14706 struct.setEIsSet(true);
14707 } else {
14708 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14709 }
14710 break;
14711 default:
14712 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14713 }
14714 iprot.readFieldEnd();
14715 }
14716 iprot.readStructEnd();
14717
14718
14719 struct.validate();
14720 }
14721
14722 public void write(org.apache.thrift.protocol.TProtocol oprot, normalizeRevision_result struct) throws org.apache.thrift.TException {
14723 struct.validate();
14724
14725 oprot.writeStructBegin(STRUCT_DESC);
14726 if (struct.success != null) {
14727 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
14728 struct.success.write(oprot);
14729 oprot.writeFieldEnd();
14730 }
14731 if (struct.e != null) {
14732 oprot.writeFieldBegin(E_FIELD_DESC);
14733 struct.e.write(oprot);
14734 oprot.writeFieldEnd();
14735 }
14736 oprot.writeFieldStop();
14737 oprot.writeStructEnd();
14738 }
14739
14740 }
14741
14742 private static class normalizeRevision_resultTupleSchemeFactory implements SchemeFactory {
14743 public normalizeRevision_resultTupleScheme getScheme() {
14744 return new normalizeRevision_resultTupleScheme();
14745 }
14746 }
14747
14748 private static class normalizeRevision_resultTupleScheme extends TupleScheme<normalizeRevision_result> {
14749
14750 @Override
14751 public void write(org.apache.thrift.protocol.TProtocol prot, normalizeRevision_result struct) throws org.apache.thrift.TException {
14752 TTupleProtocol oprot = (TTupleProtocol) prot;
14753 BitSet optionals = new BitSet();
14754 if (struct.isSetSuccess()) {
14755 optionals.set(0);
14756 }
14757 if (struct.isSetE()) {
14758 optionals.set(1);
14759 }
14760 oprot.writeBitSet(optionals, 2);
14761 if (struct.isSetSuccess()) {
14762 struct.success.write(oprot);
14763 }
14764 if (struct.isSetE()) {
14765 struct.e.write(oprot);
14766 }
14767 }
14768
14769 @Override
14770 public void read(org.apache.thrift.protocol.TProtocol prot, normalizeRevision_result struct) throws org.apache.thrift.TException {
14771 TTupleProtocol iprot = (TTupleProtocol) prot;
14772 BitSet incoming = iprot.readBitSet(2);
14773 if (incoming.get(0)) {
14774 struct.success = new Revision();
14775 struct.success.read(iprot);
14776 struct.setSuccessIsSet(true);
14777 }
14778 if (incoming.get(1)) {
14779 struct.e = new CentralDogmaException();
14780 struct.e.read(iprot);
14781 struct.setEIsSet(true);
14782 }
14783 }
14784 }
14785
14786 }
14787
14788 public static class listFiles_args implements org.apache.thrift.TBase<listFiles_args, listFiles_args._Fields>, java.io.Serializable, Cloneable, Comparable<listFiles_args> {
14789 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("listFiles_args");
14790
14791 private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)1);
14792 private static final org.apache.thrift.protocol.TField REPOSITORY_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("repositoryName", org.apache.thrift.protocol.TType.STRING, (short)2);
14793 private static final org.apache.thrift.protocol.TField REVISION_FIELD_DESC = new org.apache.thrift.protocol.TField("revision", org.apache.thrift.protocol.TType.STRUCT, (short)3);
14794 private static final org.apache.thrift.protocol.TField PATH_PATTERN_FIELD_DESC = new org.apache.thrift.protocol.TField("pathPattern", org.apache.thrift.protocol.TType.STRING, (short)4);
14795
14796 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
14797 static {
14798 schemes.put(StandardScheme.class, new listFiles_argsStandardSchemeFactory());
14799 schemes.put(TupleScheme.class, new listFiles_argsTupleSchemeFactory());
14800 }
14801
14802 public String projectName;
14803 public String repositoryName;
14804 public Revision revision;
14805 public String pathPattern;
14806
14807
14808 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14809 PROJECT_NAME((short)1, "projectName"),
14810 REPOSITORY_NAME((short)2, "repositoryName"),
14811 REVISION((short)3, "revision"),
14812 PATH_PATTERN((short)4, "pathPattern");
14813
14814 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14815
14816 static {
14817 for (_Fields field : EnumSet.allOf(_Fields.class)) {
14818 byName.put(field.getFieldName(), field);
14819 }
14820 }
14821
14822
14823
14824
14825 public static _Fields findByThriftId(int fieldId) {
14826 switch(fieldId) {
14827 case 1:
14828 return PROJECT_NAME;
14829 case 2:
14830 return REPOSITORY_NAME;
14831 case 3:
14832 return REVISION;
14833 case 4:
14834 return PATH_PATTERN;
14835 default:
14836 return null;
14837 }
14838 }
14839
14840
14841
14842
14843
14844 public static _Fields findByThriftIdOrThrow(int fieldId) {
14845 _Fields fields = findByThriftId(fieldId);
14846 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14847 return fields;
14848 }
14849
14850
14851
14852
14853 public static _Fields findByName(String name) {
14854 return byName.get(name);
14855 }
14856
14857 private final short _thriftId;
14858 private final String _fieldName;
14859
14860 _Fields(short thriftId, String fieldName) {
14861 _thriftId = thriftId;
14862 _fieldName = fieldName;
14863 }
14864
14865 public short getThriftFieldId() {
14866 return _thriftId;
14867 }
14868
14869 public String getFieldName() {
14870 return _fieldName;
14871 }
14872 }
14873
14874
14875 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14876 static {
14877 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14878 tmpMap.put(_Fields.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", org.apache.thrift.TFieldRequirementType.DEFAULT,
14879 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
14880 tmpMap.put(_Fields.REPOSITORY_NAME, new org.apache.thrift.meta_data.FieldMetaData("repositoryName", org.apache.thrift.TFieldRequirementType.DEFAULT,
14881 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
14882 tmpMap.put(_Fields.REVISION, new org.apache.thrift.meta_data.FieldMetaData("revision", org.apache.thrift.TFieldRequirementType.DEFAULT,
14883 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Revision.class)));
14884 tmpMap.put(_Fields.PATH_PATTERN, new org.apache.thrift.meta_data.FieldMetaData("pathPattern", org.apache.thrift.TFieldRequirementType.DEFAULT,
14885 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
14886 metaDataMap = Collections.unmodifiableMap(tmpMap);
14887 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(listFiles_args.class, metaDataMap);
14888 }
14889
14890 public listFiles_args() {
14891 }
14892
14893 public listFiles_args(
14894 String projectName,
14895 String repositoryName,
14896 Revision revision,
14897 String pathPattern)
14898 {
14899 this();
14900 this.projectName = projectName;
14901 this.repositoryName = repositoryName;
14902 this.revision = revision;
14903 this.pathPattern = pathPattern;
14904 }
14905
14906
14907
14908
14909 public listFiles_args(listFiles_args other) {
14910 if (other.isSetProjectName()) {
14911 this.projectName = other.projectName;
14912 }
14913 if (other.isSetRepositoryName()) {
14914 this.repositoryName = other.repositoryName;
14915 }
14916 if (other.isSetRevision()) {
14917 this.revision = new Revision(other.revision);
14918 }
14919 if (other.isSetPathPattern()) {
14920 this.pathPattern = other.pathPattern;
14921 }
14922 }
14923
14924 public listFiles_args deepCopy() {
14925 return new listFiles_args(this);
14926 }
14927
14928 @Override
14929 public void clear() {
14930 this.projectName = null;
14931 this.repositoryName = null;
14932 this.revision = null;
14933 this.pathPattern = null;
14934 }
14935
14936 public String getProjectName() {
14937 return this.projectName;
14938 }
14939
14940 public listFiles_args setProjectName(String projectName) {
14941 this.projectName = projectName;
14942 return this;
14943 }
14944
14945 public void unsetProjectName() {
14946 this.projectName = null;
14947 }
14948
14949
14950 public boolean isSetProjectName() {
14951 return this.projectName != null;
14952 }
14953
14954 public void setProjectNameIsSet(boolean value) {
14955 if (!value) {
14956 this.projectName = null;
14957 }
14958 }
14959
14960 public String getRepositoryName() {
14961 return this.repositoryName;
14962 }
14963
14964 public listFiles_args setRepositoryName(String repositoryName) {
14965 this.repositoryName = repositoryName;
14966 return this;
14967 }
14968
14969 public void unsetRepositoryName() {
14970 this.repositoryName = null;
14971 }
14972
14973
14974 public boolean isSetRepositoryName() {
14975 return this.repositoryName != null;
14976 }
14977
14978 public void setRepositoryNameIsSet(boolean value) {
14979 if (!value) {
14980 this.repositoryName = null;
14981 }
14982 }
14983
14984 public Revision getRevision() {
14985 return this.revision;
14986 }
14987
14988 public listFiles_args setRevision(Revision revision) {
14989 this.revision = revision;
14990 return this;
14991 }
14992
14993 public void unsetRevision() {
14994 this.revision = null;
14995 }
14996
14997
14998 public boolean isSetRevision() {
14999 return this.revision != null;
15000 }
15001
15002 public void setRevisionIsSet(boolean value) {
15003 if (!value) {
15004 this.revision = null;
15005 }
15006 }
15007
15008 public String getPathPattern() {
15009 return this.pathPattern;
15010 }
15011
15012 public listFiles_args setPathPattern(String pathPattern) {
15013 this.pathPattern = pathPattern;
15014 return this;
15015 }
15016
15017 public void unsetPathPattern() {
15018 this.pathPattern = null;
15019 }
15020
15021
15022 public boolean isSetPathPattern() {
15023 return this.pathPattern != null;
15024 }
15025
15026 public void setPathPatternIsSet(boolean value) {
15027 if (!value) {
15028 this.pathPattern = null;
15029 }
15030 }
15031
15032 public void setFieldValue(_Fields field, Object value) {
15033 switch (field) {
15034 case PROJECT_NAME:
15035 if (value == null) {
15036 unsetProjectName();
15037 } else {
15038 setProjectName((String)value);
15039 }
15040 break;
15041
15042 case REPOSITORY_NAME:
15043 if (value == null) {
15044 unsetRepositoryName();
15045 } else {
15046 setRepositoryName((String)value);
15047 }
15048 break;
15049
15050 case REVISION:
15051 if (value == null) {
15052 unsetRevision();
15053 } else {
15054 setRevision((Revision)value);
15055 }
15056 break;
15057
15058 case PATH_PATTERN:
15059 if (value == null) {
15060 unsetPathPattern();
15061 } else {
15062 setPathPattern((String)value);
15063 }
15064 break;
15065
15066 }
15067 }
15068
15069 public Object getFieldValue(_Fields field) {
15070 switch (field) {
15071 case PROJECT_NAME:
15072 return getProjectName();
15073
15074 case REPOSITORY_NAME:
15075 return getRepositoryName();
15076
15077 case REVISION:
15078 return getRevision();
15079
15080 case PATH_PATTERN:
15081 return getPathPattern();
15082
15083 }
15084 throw new IllegalStateException();
15085 }
15086
15087
15088 public boolean isSet(_Fields field) {
15089 if (field == null) {
15090 throw new IllegalArgumentException();
15091 }
15092
15093 switch (field) {
15094 case PROJECT_NAME:
15095 return isSetProjectName();
15096 case REPOSITORY_NAME:
15097 return isSetRepositoryName();
15098 case REVISION:
15099 return isSetRevision();
15100 case PATH_PATTERN:
15101 return isSetPathPattern();
15102 }
15103 throw new IllegalStateException();
15104 }
15105
15106 @Override
15107 public boolean equals(Object that) {
15108 if (that == null)
15109 return false;
15110 if (that instanceof listFiles_args)
15111 return this.equals((listFiles_args)that);
15112 return false;
15113 }
15114
15115 public boolean equals(listFiles_args that) {
15116 if (that == null)
15117 return false;
15118
15119 boolean this_present_projectName = true && this.isSetProjectName();
15120 boolean that_present_projectName = true && that.isSetProjectName();
15121 if (this_present_projectName || that_present_projectName) {
15122 if (!(this_present_projectName && that_present_projectName))
15123 return false;
15124 if (!this.projectName.equals(that.projectName))
15125 return false;
15126 }
15127
15128 boolean this_present_repositoryName = true && this.isSetRepositoryName();
15129 boolean that_present_repositoryName = true && that.isSetRepositoryName();
15130 if (this_present_repositoryName || that_present_repositoryName) {
15131 if (!(this_present_repositoryName && that_present_repositoryName))
15132 return false;
15133 if (!this.repositoryName.equals(that.repositoryName))
15134 return false;
15135 }
15136
15137 boolean this_present_revision = true && this.isSetRevision();
15138 boolean that_present_revision = true && that.isSetRevision();
15139 if (this_present_revision || that_present_revision) {
15140 if (!(this_present_revision && that_present_revision))
15141 return false;
15142 if (!this.revision.equals(that.revision))
15143 return false;
15144 }
15145
15146 boolean this_present_pathPattern = true && this.isSetPathPattern();
15147 boolean that_present_pathPattern = true && that.isSetPathPattern();
15148 if (this_present_pathPattern || that_present_pathPattern) {
15149 if (!(this_present_pathPattern && that_present_pathPattern))
15150 return false;
15151 if (!this.pathPattern.equals(that.pathPattern))
15152 return false;
15153 }
15154
15155 return true;
15156 }
15157
15158 @Override
15159 public int hashCode() {
15160 List<Object> list = new ArrayList<Object>();
15161
15162 boolean present_projectName = true && (isSetProjectName());
15163 list.add(present_projectName);
15164 if (present_projectName)
15165 list.add(projectName);
15166
15167 boolean present_repositoryName = true && (isSetRepositoryName());
15168 list.add(present_repositoryName);
15169 if (present_repositoryName)
15170 list.add(repositoryName);
15171
15172 boolean present_revision = true && (isSetRevision());
15173 list.add(present_revision);
15174 if (present_revision)
15175 list.add(revision);
15176
15177 boolean present_pathPattern = true && (isSetPathPattern());
15178 list.add(present_pathPattern);
15179 if (present_pathPattern)
15180 list.add(pathPattern);
15181
15182 return list.hashCode();
15183 }
15184
15185 @Override
15186 public int compareTo(listFiles_args other) {
15187 if (!getClass().equals(other.getClass())) {
15188 return getClass().getName().compareTo(other.getClass().getName());
15189 }
15190
15191 int lastComparison = 0;
15192
15193 lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName());
15194 if (lastComparison != 0) {
15195 return lastComparison;
15196 }
15197 if (isSetProjectName()) {
15198 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName);
15199 if (lastComparison != 0) {
15200 return lastComparison;
15201 }
15202 }
15203 lastComparison = Boolean.valueOf(isSetRepositoryName()).compareTo(other.isSetRepositoryName());
15204 if (lastComparison != 0) {
15205 return lastComparison;
15206 }
15207 if (isSetRepositoryName()) {
15208 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.repositoryName, other.repositoryName);
15209 if (lastComparison != 0) {
15210 return lastComparison;
15211 }
15212 }
15213 lastComparison = Boolean.valueOf(isSetRevision()).compareTo(other.isSetRevision());
15214 if (lastComparison != 0) {
15215 return lastComparison;
15216 }
15217 if (isSetRevision()) {
15218 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.revision, other.revision);
15219 if (lastComparison != 0) {
15220 return lastComparison;
15221 }
15222 }
15223 lastComparison = Boolean.valueOf(isSetPathPattern()).compareTo(other.isSetPathPattern());
15224 if (lastComparison != 0) {
15225 return lastComparison;
15226 }
15227 if (isSetPathPattern()) {
15228 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pathPattern, other.pathPattern);
15229 if (lastComparison != 0) {
15230 return lastComparison;
15231 }
15232 }
15233 return 0;
15234 }
15235
15236 public _Fields fieldForId(int fieldId) {
15237 return _Fields.findByThriftId(fieldId);
15238 }
15239
15240 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15241 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
15242 }
15243
15244 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15245 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
15246 }
15247
15248 @Override
15249 public String toString() {
15250 StringBuilder sb = new StringBuilder("listFiles_args(");
15251 boolean first = true;
15252
15253 sb.append("projectName:");
15254 if (this.projectName == null) {
15255 sb.append("null");
15256 } else {
15257 sb.append(this.projectName);
15258 }
15259 first = false;
15260 if (!first) sb.append(", ");
15261 sb.append("repositoryName:");
15262 if (this.repositoryName == null) {
15263 sb.append("null");
15264 } else {
15265 sb.append(this.repositoryName);
15266 }
15267 first = false;
15268 if (!first) sb.append(", ");
15269 sb.append("revision:");
15270 if (this.revision == null) {
15271 sb.append("null");
15272 } else {
15273 sb.append(this.revision);
15274 }
15275 first = false;
15276 if (!first) sb.append(", ");
15277 sb.append("pathPattern:");
15278 if (this.pathPattern == null) {
15279 sb.append("null");
15280 } else {
15281 sb.append(this.pathPattern);
15282 }
15283 first = false;
15284 sb.append(")");
15285 return sb.toString();
15286 }
15287
15288 public void validate() throws org.apache.thrift.TException {
15289
15290
15291 if (revision != null) {
15292 revision.validate();
15293 }
15294 }
15295
15296 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15297 try {
15298 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15299 } catch (org.apache.thrift.TException te) {
15300 throw new java.io.IOException(te);
15301 }
15302 }
15303
15304 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15305 try {
15306 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15307 } catch (org.apache.thrift.TException te) {
15308 throw new java.io.IOException(te);
15309 }
15310 }
15311
15312 private static class listFiles_argsStandardSchemeFactory implements SchemeFactory {
15313 public listFiles_argsStandardScheme getScheme() {
15314 return new listFiles_argsStandardScheme();
15315 }
15316 }
15317
15318 private static class listFiles_argsStandardScheme extends StandardScheme<listFiles_args> {
15319
15320 public void read(org.apache.thrift.protocol.TProtocol iprot, listFiles_args struct) throws org.apache.thrift.TException {
15321 org.apache.thrift.protocol.TField schemeField;
15322 iprot.readStructBegin();
15323 while (true)
15324 {
15325 schemeField = iprot.readFieldBegin();
15326 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
15327 break;
15328 }
15329 switch (schemeField.id) {
15330 case 1:
15331 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
15332 struct.projectName = iprot.readString();
15333 struct.setProjectNameIsSet(true);
15334 } else {
15335 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
15336 }
15337 break;
15338 case 2:
15339 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
15340 struct.repositoryName = iprot.readString();
15341 struct.setRepositoryNameIsSet(true);
15342 } else {
15343 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
15344 }
15345 break;
15346 case 3:
15347 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
15348 struct.revision = new Revision();
15349 struct.revision.read(iprot);
15350 struct.setRevisionIsSet(true);
15351 } else {
15352 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
15353 }
15354 break;
15355 case 4:
15356 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
15357 struct.pathPattern = iprot.readString();
15358 struct.setPathPatternIsSet(true);
15359 } else {
15360 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
15361 }
15362 break;
15363 default:
15364 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
15365 }
15366 iprot.readFieldEnd();
15367 }
15368 iprot.readStructEnd();
15369
15370
15371 struct.validate();
15372 }
15373
15374 public void write(org.apache.thrift.protocol.TProtocol oprot, listFiles_args struct) throws org.apache.thrift.TException {
15375 struct.validate();
15376
15377 oprot.writeStructBegin(STRUCT_DESC);
15378 if (struct.projectName != null) {
15379 oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC);
15380 oprot.writeString(struct.projectName);
15381 oprot.writeFieldEnd();
15382 }
15383 if (struct.repositoryName != null) {
15384 oprot.writeFieldBegin(REPOSITORY_NAME_FIELD_DESC);
15385 oprot.writeString(struct.repositoryName);
15386 oprot.writeFieldEnd();
15387 }
15388 if (struct.revision != null) {
15389 oprot.writeFieldBegin(REVISION_FIELD_DESC);
15390 struct.revision.write(oprot);
15391 oprot.writeFieldEnd();
15392 }
15393 if (struct.pathPattern != null) {
15394 oprot.writeFieldBegin(PATH_PATTERN_FIELD_DESC);
15395 oprot.writeString(struct.pathPattern);
15396 oprot.writeFieldEnd();
15397 }
15398 oprot.writeFieldStop();
15399 oprot.writeStructEnd();
15400 }
15401
15402 }
15403
15404 private static class listFiles_argsTupleSchemeFactory implements SchemeFactory {
15405 public listFiles_argsTupleScheme getScheme() {
15406 return new listFiles_argsTupleScheme();
15407 }
15408 }
15409
15410 private static class listFiles_argsTupleScheme extends TupleScheme<listFiles_args> {
15411
15412 @Override
15413 public void write(org.apache.thrift.protocol.TProtocol prot, listFiles_args struct) throws org.apache.thrift.TException {
15414 TTupleProtocol oprot = (TTupleProtocol) prot;
15415 BitSet optionals = new BitSet();
15416 if (struct.isSetProjectName()) {
15417 optionals.set(0);
15418 }
15419 if (struct.isSetRepositoryName()) {
15420 optionals.set(1);
15421 }
15422 if (struct.isSetRevision()) {
15423 optionals.set(2);
15424 }
15425 if (struct.isSetPathPattern()) {
15426 optionals.set(3);
15427 }
15428 oprot.writeBitSet(optionals, 4);
15429 if (struct.isSetProjectName()) {
15430 oprot.writeString(struct.projectName);
15431 }
15432 if (struct.isSetRepositoryName()) {
15433 oprot.writeString(struct.repositoryName);
15434 }
15435 if (struct.isSetRevision()) {
15436 struct.revision.write(oprot);
15437 }
15438 if (struct.isSetPathPattern()) {
15439 oprot.writeString(struct.pathPattern);
15440 }
15441 }
15442
15443 @Override
15444 public void read(org.apache.thrift.protocol.TProtocol prot, listFiles_args struct) throws org.apache.thrift.TException {
15445 TTupleProtocol iprot = (TTupleProtocol) prot;
15446 BitSet incoming = iprot.readBitSet(4);
15447 if (incoming.get(0)) {
15448 struct.projectName = iprot.readString();
15449 struct.setProjectNameIsSet(true);
15450 }
15451 if (incoming.get(1)) {
15452 struct.repositoryName = iprot.readString();
15453 struct.setRepositoryNameIsSet(true);
15454 }
15455 if (incoming.get(2)) {
15456 struct.revision = new Revision();
15457 struct.revision.read(iprot);
15458 struct.setRevisionIsSet(true);
15459 }
15460 if (incoming.get(3)) {
15461 struct.pathPattern = iprot.readString();
15462 struct.setPathPatternIsSet(true);
15463 }
15464 }
15465 }
15466
15467 }
15468
15469 public static class listFiles_result implements org.apache.thrift.TBase<listFiles_result, listFiles_result._Fields>, java.io.Serializable, Cloneable, Comparable<listFiles_result> {
15470 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("listFiles_result");
15471
15472 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
15473 private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
15474
15475 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
15476 static {
15477 schemes.put(StandardScheme.class, new listFiles_resultStandardSchemeFactory());
15478 schemes.put(TupleScheme.class, new listFiles_resultTupleSchemeFactory());
15479 }
15480
15481 public List<Entry> success;
15482 public CentralDogmaException e;
15483
15484
15485 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15486 SUCCESS((short)0, "success"),
15487 E((short)1, "e");
15488
15489 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15490
15491 static {
15492 for (_Fields field : EnumSet.allOf(_Fields.class)) {
15493 byName.put(field.getFieldName(), field);
15494 }
15495 }
15496
15497
15498
15499
15500 public static _Fields findByThriftId(int fieldId) {
15501 switch(fieldId) {
15502 case 0:
15503 return SUCCESS;
15504 case 1:
15505 return E;
15506 default:
15507 return null;
15508 }
15509 }
15510
15511
15512
15513
15514
15515 public static _Fields findByThriftIdOrThrow(int fieldId) {
15516 _Fields fields = findByThriftId(fieldId);
15517 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15518 return fields;
15519 }
15520
15521
15522
15523
15524 public static _Fields findByName(String name) {
15525 return byName.get(name);
15526 }
15527
15528 private final short _thriftId;
15529 private final String _fieldName;
15530
15531 _Fields(short thriftId, String fieldName) {
15532 _thriftId = thriftId;
15533 _fieldName = fieldName;
15534 }
15535
15536 public short getThriftFieldId() {
15537 return _thriftId;
15538 }
15539
15540 public String getFieldName() {
15541 return _fieldName;
15542 }
15543 }
15544
15545
15546 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15547 static {
15548 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15549 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
15550 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
15551 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Entry.class))));
15552 tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
15553 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
15554 metaDataMap = Collections.unmodifiableMap(tmpMap);
15555 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(listFiles_result.class, metaDataMap);
15556 }
15557
15558 public listFiles_result() {
15559 }
15560
15561 public listFiles_result(
15562 List<Entry> success,
15563 CentralDogmaException e)
15564 {
15565 this();
15566 this.success = success;
15567 this.e = e;
15568 }
15569
15570
15571
15572
15573 public listFiles_result(listFiles_result other) {
15574 if (other.isSetSuccess()) {
15575 List<Entry> __this__success = new ArrayList<Entry>(other.success.size());
15576 for (Entry other_element : other.success) {
15577 __this__success.add(new Entry(other_element));
15578 }
15579 this.success = __this__success;
15580 }
15581 if (other.isSetE()) {
15582 this.e = new CentralDogmaException(other.e);
15583 }
15584 }
15585
15586 public listFiles_result deepCopy() {
15587 return new listFiles_result(this);
15588 }
15589
15590 @Override
15591 public void clear() {
15592 this.success = null;
15593 this.e = null;
15594 }
15595
15596 public int getSuccessSize() {
15597 return (this.success == null) ? 0 : this.success.size();
15598 }
15599
15600 public java.util.Iterator<Entry> getSuccessIterator() {
15601 return (this.success == null) ? null : this.success.iterator();
15602 }
15603
15604 public void addToSuccess(Entry elem) {
15605 if (this.success == null) {
15606 this.success = new ArrayList<Entry>();
15607 }
15608 this.success.add(elem);
15609 }
15610
15611 public List<Entry> getSuccess() {
15612 return this.success;
15613 }
15614
15615 public listFiles_result setSuccess(List<Entry> success) {
15616 this.success = success;
15617 return this;
15618 }
15619
15620 public void unsetSuccess() {
15621 this.success = null;
15622 }
15623
15624
15625 public boolean isSetSuccess() {
15626 return this.success != null;
15627 }
15628
15629 public void setSuccessIsSet(boolean value) {
15630 if (!value) {
15631 this.success = null;
15632 }
15633 }
15634
15635 public CentralDogmaException getE() {
15636 return this.e;
15637 }
15638
15639 public listFiles_result setE(CentralDogmaException e) {
15640 this.e = e;
15641 return this;
15642 }
15643
15644 public void unsetE() {
15645 this.e = null;
15646 }
15647
15648
15649 public boolean isSetE() {
15650 return this.e != null;
15651 }
15652
15653 public void setEIsSet(boolean value) {
15654 if (!value) {
15655 this.e = null;
15656 }
15657 }
15658
15659 public void setFieldValue(_Fields field, Object value) {
15660 switch (field) {
15661 case SUCCESS:
15662 if (value == null) {
15663 unsetSuccess();
15664 } else {
15665 setSuccess((List<Entry>)value);
15666 }
15667 break;
15668
15669 case E:
15670 if (value == null) {
15671 unsetE();
15672 } else {
15673 setE((CentralDogmaException)value);
15674 }
15675 break;
15676
15677 }
15678 }
15679
15680 public Object getFieldValue(_Fields field) {
15681 switch (field) {
15682 case SUCCESS:
15683 return getSuccess();
15684
15685 case E:
15686 return getE();
15687
15688 }
15689 throw new IllegalStateException();
15690 }
15691
15692
15693 public boolean isSet(_Fields field) {
15694 if (field == null) {
15695 throw new IllegalArgumentException();
15696 }
15697
15698 switch (field) {
15699 case SUCCESS:
15700 return isSetSuccess();
15701 case E:
15702 return isSetE();
15703 }
15704 throw new IllegalStateException();
15705 }
15706
15707 @Override
15708 public boolean equals(Object that) {
15709 if (that == null)
15710 return false;
15711 if (that instanceof listFiles_result)
15712 return this.equals((listFiles_result)that);
15713 return false;
15714 }
15715
15716 public boolean equals(listFiles_result that) {
15717 if (that == null)
15718 return false;
15719
15720 boolean this_present_success = true && this.isSetSuccess();
15721 boolean that_present_success = true && that.isSetSuccess();
15722 if (this_present_success || that_present_success) {
15723 if (!(this_present_success && that_present_success))
15724 return false;
15725 if (!this.success.equals(that.success))
15726 return false;
15727 }
15728
15729 boolean this_present_e = true && this.isSetE();
15730 boolean that_present_e = true && that.isSetE();
15731 if (this_present_e || that_present_e) {
15732 if (!(this_present_e && that_present_e))
15733 return false;
15734 if (!this.e.equals(that.e))
15735 return false;
15736 }
15737
15738 return true;
15739 }
15740
15741 @Override
15742 public int hashCode() {
15743 List<Object> list = new ArrayList<Object>();
15744
15745 boolean present_success = true && (isSetSuccess());
15746 list.add(present_success);
15747 if (present_success)
15748 list.add(success);
15749
15750 boolean present_e = true && (isSetE());
15751 list.add(present_e);
15752 if (present_e)
15753 list.add(e);
15754
15755 return list.hashCode();
15756 }
15757
15758 @Override
15759 public int compareTo(listFiles_result other) {
15760 if (!getClass().equals(other.getClass())) {
15761 return getClass().getName().compareTo(other.getClass().getName());
15762 }
15763
15764 int lastComparison = 0;
15765
15766 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
15767 if (lastComparison != 0) {
15768 return lastComparison;
15769 }
15770 if (isSetSuccess()) {
15771 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
15772 if (lastComparison != 0) {
15773 return lastComparison;
15774 }
15775 }
15776 lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE());
15777 if (lastComparison != 0) {
15778 return lastComparison;
15779 }
15780 if (isSetE()) {
15781 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e);
15782 if (lastComparison != 0) {
15783 return lastComparison;
15784 }
15785 }
15786 return 0;
15787 }
15788
15789 public _Fields fieldForId(int fieldId) {
15790 return _Fields.findByThriftId(fieldId);
15791 }
15792
15793 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15794 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
15795 }
15796
15797 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15798 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
15799 }
15800
15801 @Override
15802 public String toString() {
15803 StringBuilder sb = new StringBuilder("listFiles_result(");
15804 boolean first = true;
15805
15806 sb.append("success:");
15807 if (this.success == null) {
15808 sb.append("null");
15809 } else {
15810 sb.append(this.success);
15811 }
15812 first = false;
15813 if (!first) sb.append(", ");
15814 sb.append("e:");
15815 if (this.e == null) {
15816 sb.append("null");
15817 } else {
15818 sb.append(this.e);
15819 }
15820 first = false;
15821 sb.append(")");
15822 return sb.toString();
15823 }
15824
15825 public void validate() throws org.apache.thrift.TException {
15826
15827
15828 }
15829
15830 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15831 try {
15832 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15833 } catch (org.apache.thrift.TException te) {
15834 throw new java.io.IOException(te);
15835 }
15836 }
15837
15838 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15839 try {
15840 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15841 } catch (org.apache.thrift.TException te) {
15842 throw new java.io.IOException(te);
15843 }
15844 }
15845
15846 private static class listFiles_resultStandardSchemeFactory implements SchemeFactory {
15847 public listFiles_resultStandardScheme getScheme() {
15848 return new listFiles_resultStandardScheme();
15849 }
15850 }
15851
15852 private static class listFiles_resultStandardScheme extends StandardScheme<listFiles_result> {
15853
15854 public void read(org.apache.thrift.protocol.TProtocol iprot, listFiles_result struct) throws org.apache.thrift.TException {
15855 org.apache.thrift.protocol.TField schemeField;
15856 iprot.readStructBegin();
15857 while (true)
15858 {
15859 schemeField = iprot.readFieldBegin();
15860 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
15861 break;
15862 }
15863 switch (schemeField.id) {
15864 case 0:
15865 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
15866 {
15867 org.apache.thrift.protocol.TList _list104 = iprot.readListBegin();
15868 struct.success = new ArrayList<Entry>(_list104.size);
15869 Entry _elem105;
15870 for (int _i106 = 0; _i106 < _list104.size; ++_i106)
15871 {
15872 _elem105 = new Entry();
15873 _elem105.read(iprot);
15874 struct.success.add(_elem105);
15875 }
15876 iprot.readListEnd();
15877 }
15878 struct.setSuccessIsSet(true);
15879 } else {
15880 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
15881 }
15882 break;
15883 case 1:
15884 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
15885 struct.e = new CentralDogmaException();
15886 struct.e.read(iprot);
15887 struct.setEIsSet(true);
15888 } else {
15889 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
15890 }
15891 break;
15892 default:
15893 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
15894 }
15895 iprot.readFieldEnd();
15896 }
15897 iprot.readStructEnd();
15898
15899
15900 struct.validate();
15901 }
15902
15903 public void write(org.apache.thrift.protocol.TProtocol oprot, listFiles_result struct) throws org.apache.thrift.TException {
15904 struct.validate();
15905
15906 oprot.writeStructBegin(STRUCT_DESC);
15907 if (struct.success != null) {
15908 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
15909 {
15910 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
15911 for (Entry _iter107 : struct.success)
15912 {
15913 _iter107.write(oprot);
15914 }
15915 oprot.writeListEnd();
15916 }
15917 oprot.writeFieldEnd();
15918 }
15919 if (struct.e != null) {
15920 oprot.writeFieldBegin(E_FIELD_DESC);
15921 struct.e.write(oprot);
15922 oprot.writeFieldEnd();
15923 }
15924 oprot.writeFieldStop();
15925 oprot.writeStructEnd();
15926 }
15927
15928 }
15929
15930 private static class listFiles_resultTupleSchemeFactory implements SchemeFactory {
15931 public listFiles_resultTupleScheme getScheme() {
15932 return new listFiles_resultTupleScheme();
15933 }
15934 }
15935
15936 private static class listFiles_resultTupleScheme extends TupleScheme<listFiles_result> {
15937
15938 @Override
15939 public void write(org.apache.thrift.protocol.TProtocol prot, listFiles_result struct) throws org.apache.thrift.TException {
15940 TTupleProtocol oprot = (TTupleProtocol) prot;
15941 BitSet optionals = new BitSet();
15942 if (struct.isSetSuccess()) {
15943 optionals.set(0);
15944 }
15945 if (struct.isSetE()) {
15946 optionals.set(1);
15947 }
15948 oprot.writeBitSet(optionals, 2);
15949 if (struct.isSetSuccess()) {
15950 {
15951 oprot.writeI32(struct.success.size());
15952 for (Entry _iter108 : struct.success)
15953 {
15954 _iter108.write(oprot);
15955 }
15956 }
15957 }
15958 if (struct.isSetE()) {
15959 struct.e.write(oprot);
15960 }
15961 }
15962
15963 @Override
15964 public void read(org.apache.thrift.protocol.TProtocol prot, listFiles_result struct) throws org.apache.thrift.TException {
15965 TTupleProtocol iprot = (TTupleProtocol) prot;
15966 BitSet incoming = iprot.readBitSet(2);
15967 if (incoming.get(0)) {
15968 {
15969 org.apache.thrift.protocol.TList _list109 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
15970 struct.success = new ArrayList<Entry>(_list109.size);
15971 Entry _elem110;
15972 for (int _i111 = 0; _i111 < _list109.size; ++_i111)
15973 {
15974 _elem110 = new Entry();
15975 _elem110.read(iprot);
15976 struct.success.add(_elem110);
15977 }
15978 }
15979 struct.setSuccessIsSet(true);
15980 }
15981 if (incoming.get(1)) {
15982 struct.e = new CentralDogmaException();
15983 struct.e.read(iprot);
15984 struct.setEIsSet(true);
15985 }
15986 }
15987 }
15988
15989 }
15990
15991 public static class getFiles_args implements org.apache.thrift.TBase<getFiles_args, getFiles_args._Fields>, java.io.Serializable, Cloneable, Comparable<getFiles_args> {
15992 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFiles_args");
15993
15994 private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)1);
15995 private static final org.apache.thrift.protocol.TField REPOSITORY_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("repositoryName", org.apache.thrift.protocol.TType.STRING, (short)2);
15996 private static final org.apache.thrift.protocol.TField REVISION_FIELD_DESC = new org.apache.thrift.protocol.TField("revision", org.apache.thrift.protocol.TType.STRUCT, (short)3);
15997 private static final org.apache.thrift.protocol.TField PATH_PATTERN_FIELD_DESC = new org.apache.thrift.protocol.TField("pathPattern", org.apache.thrift.protocol.TType.STRING, (short)4);
15998
15999 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
16000 static {
16001 schemes.put(StandardScheme.class, new getFiles_argsStandardSchemeFactory());
16002 schemes.put(TupleScheme.class, new getFiles_argsTupleSchemeFactory());
16003 }
16004
16005 public String projectName;
16006 public String repositoryName;
16007 public Revision revision;
16008 public String pathPattern;
16009
16010
16011 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16012 PROJECT_NAME((short)1, "projectName"),
16013 REPOSITORY_NAME((short)2, "repositoryName"),
16014 REVISION((short)3, "revision"),
16015 PATH_PATTERN((short)4, "pathPattern");
16016
16017 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16018
16019 static {
16020 for (_Fields field : EnumSet.allOf(_Fields.class)) {
16021 byName.put(field.getFieldName(), field);
16022 }
16023 }
16024
16025
16026
16027
16028 public static _Fields findByThriftId(int fieldId) {
16029 switch(fieldId) {
16030 case 1:
16031 return PROJECT_NAME;
16032 case 2:
16033 return REPOSITORY_NAME;
16034 case 3:
16035 return REVISION;
16036 case 4:
16037 return PATH_PATTERN;
16038 default:
16039 return null;
16040 }
16041 }
16042
16043
16044
16045
16046
16047 public static _Fields findByThriftIdOrThrow(int fieldId) {
16048 _Fields fields = findByThriftId(fieldId);
16049 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16050 return fields;
16051 }
16052
16053
16054
16055
16056 public static _Fields findByName(String name) {
16057 return byName.get(name);
16058 }
16059
16060 private final short _thriftId;
16061 private final String _fieldName;
16062
16063 _Fields(short thriftId, String fieldName) {
16064 _thriftId = thriftId;
16065 _fieldName = fieldName;
16066 }
16067
16068 public short getThriftFieldId() {
16069 return _thriftId;
16070 }
16071
16072 public String getFieldName() {
16073 return _fieldName;
16074 }
16075 }
16076
16077
16078 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16079 static {
16080 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16081 tmpMap.put(_Fields.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", org.apache.thrift.TFieldRequirementType.DEFAULT,
16082 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
16083 tmpMap.put(_Fields.REPOSITORY_NAME, new org.apache.thrift.meta_data.FieldMetaData("repositoryName", org.apache.thrift.TFieldRequirementType.DEFAULT,
16084 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
16085 tmpMap.put(_Fields.REVISION, new org.apache.thrift.meta_data.FieldMetaData("revision", org.apache.thrift.TFieldRequirementType.DEFAULT,
16086 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Revision.class)));
16087 tmpMap.put(_Fields.PATH_PATTERN, new org.apache.thrift.meta_data.FieldMetaData("pathPattern", org.apache.thrift.TFieldRequirementType.DEFAULT,
16088 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
16089 metaDataMap = Collections.unmodifiableMap(tmpMap);
16090 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFiles_args.class, metaDataMap);
16091 }
16092
16093 public getFiles_args() {
16094 }
16095
16096 public getFiles_args(
16097 String projectName,
16098 String repositoryName,
16099 Revision revision,
16100 String pathPattern)
16101 {
16102 this();
16103 this.projectName = projectName;
16104 this.repositoryName = repositoryName;
16105 this.revision = revision;
16106 this.pathPattern = pathPattern;
16107 }
16108
16109
16110
16111
16112 public getFiles_args(getFiles_args other) {
16113 if (other.isSetProjectName()) {
16114 this.projectName = other.projectName;
16115 }
16116 if (other.isSetRepositoryName()) {
16117 this.repositoryName = other.repositoryName;
16118 }
16119 if (other.isSetRevision()) {
16120 this.revision = new Revision(other.revision);
16121 }
16122 if (other.isSetPathPattern()) {
16123 this.pathPattern = other.pathPattern;
16124 }
16125 }
16126
16127 public getFiles_args deepCopy() {
16128 return new getFiles_args(this);
16129 }
16130
16131 @Override
16132 public void clear() {
16133 this.projectName = null;
16134 this.repositoryName = null;
16135 this.revision = null;
16136 this.pathPattern = null;
16137 }
16138
16139 public String getProjectName() {
16140 return this.projectName;
16141 }
16142
16143 public getFiles_args setProjectName(String projectName) {
16144 this.projectName = projectName;
16145 return this;
16146 }
16147
16148 public void unsetProjectName() {
16149 this.projectName = null;
16150 }
16151
16152
16153 public boolean isSetProjectName() {
16154 return this.projectName != null;
16155 }
16156
16157 public void setProjectNameIsSet(boolean value) {
16158 if (!value) {
16159 this.projectName = null;
16160 }
16161 }
16162
16163 public String getRepositoryName() {
16164 return this.repositoryName;
16165 }
16166
16167 public getFiles_args setRepositoryName(String repositoryName) {
16168 this.repositoryName = repositoryName;
16169 return this;
16170 }
16171
16172 public void unsetRepositoryName() {
16173 this.repositoryName = null;
16174 }
16175
16176
16177 public boolean isSetRepositoryName() {
16178 return this.repositoryName != null;
16179 }
16180
16181 public void setRepositoryNameIsSet(boolean value) {
16182 if (!value) {
16183 this.repositoryName = null;
16184 }
16185 }
16186
16187 public Revision getRevision() {
16188 return this.revision;
16189 }
16190
16191 public getFiles_args setRevision(Revision revision) {
16192 this.revision = revision;
16193 return this;
16194 }
16195
16196 public void unsetRevision() {
16197 this.revision = null;
16198 }
16199
16200
16201 public boolean isSetRevision() {
16202 return this.revision != null;
16203 }
16204
16205 public void setRevisionIsSet(boolean value) {
16206 if (!value) {
16207 this.revision = null;
16208 }
16209 }
16210
16211 public String getPathPattern() {
16212 return this.pathPattern;
16213 }
16214
16215 public getFiles_args setPathPattern(String pathPattern) {
16216 this.pathPattern = pathPattern;
16217 return this;
16218 }
16219
16220 public void unsetPathPattern() {
16221 this.pathPattern = null;
16222 }
16223
16224
16225 public boolean isSetPathPattern() {
16226 return this.pathPattern != null;
16227 }
16228
16229 public void setPathPatternIsSet(boolean value) {
16230 if (!value) {
16231 this.pathPattern = null;
16232 }
16233 }
16234
16235 public void setFieldValue(_Fields field, Object value) {
16236 switch (field) {
16237 case PROJECT_NAME:
16238 if (value == null) {
16239 unsetProjectName();
16240 } else {
16241 setProjectName((String)value);
16242 }
16243 break;
16244
16245 case REPOSITORY_NAME:
16246 if (value == null) {
16247 unsetRepositoryName();
16248 } else {
16249 setRepositoryName((String)value);
16250 }
16251 break;
16252
16253 case REVISION:
16254 if (value == null) {
16255 unsetRevision();
16256 } else {
16257 setRevision((Revision)value);
16258 }
16259 break;
16260
16261 case PATH_PATTERN:
16262 if (value == null) {
16263 unsetPathPattern();
16264 } else {
16265 setPathPattern((String)value);
16266 }
16267 break;
16268
16269 }
16270 }
16271
16272 public Object getFieldValue(_Fields field) {
16273 switch (field) {
16274 case PROJECT_NAME:
16275 return getProjectName();
16276
16277 case REPOSITORY_NAME:
16278 return getRepositoryName();
16279
16280 case REVISION:
16281 return getRevision();
16282
16283 case PATH_PATTERN:
16284 return getPathPattern();
16285
16286 }
16287 throw new IllegalStateException();
16288 }
16289
16290
16291 public boolean isSet(_Fields field) {
16292 if (field == null) {
16293 throw new IllegalArgumentException();
16294 }
16295
16296 switch (field) {
16297 case PROJECT_NAME:
16298 return isSetProjectName();
16299 case REPOSITORY_NAME:
16300 return isSetRepositoryName();
16301 case REVISION:
16302 return isSetRevision();
16303 case PATH_PATTERN:
16304 return isSetPathPattern();
16305 }
16306 throw new IllegalStateException();
16307 }
16308
16309 @Override
16310 public boolean equals(Object that) {
16311 if (that == null)
16312 return false;
16313 if (that instanceof getFiles_args)
16314 return this.equals((getFiles_args)that);
16315 return false;
16316 }
16317
16318 public boolean equals(getFiles_args that) {
16319 if (that == null)
16320 return false;
16321
16322 boolean this_present_projectName = true && this.isSetProjectName();
16323 boolean that_present_projectName = true && that.isSetProjectName();
16324 if (this_present_projectName || that_present_projectName) {
16325 if (!(this_present_projectName && that_present_projectName))
16326 return false;
16327 if (!this.projectName.equals(that.projectName))
16328 return false;
16329 }
16330
16331 boolean this_present_repositoryName = true && this.isSetRepositoryName();
16332 boolean that_present_repositoryName = true && that.isSetRepositoryName();
16333 if (this_present_repositoryName || that_present_repositoryName) {
16334 if (!(this_present_repositoryName && that_present_repositoryName))
16335 return false;
16336 if (!this.repositoryName.equals(that.repositoryName))
16337 return false;
16338 }
16339
16340 boolean this_present_revision = true && this.isSetRevision();
16341 boolean that_present_revision = true && that.isSetRevision();
16342 if (this_present_revision || that_present_revision) {
16343 if (!(this_present_revision && that_present_revision))
16344 return false;
16345 if (!this.revision.equals(that.revision))
16346 return false;
16347 }
16348
16349 boolean this_present_pathPattern = true && this.isSetPathPattern();
16350 boolean that_present_pathPattern = true && that.isSetPathPattern();
16351 if (this_present_pathPattern || that_present_pathPattern) {
16352 if (!(this_present_pathPattern && that_present_pathPattern))
16353 return false;
16354 if (!this.pathPattern.equals(that.pathPattern))
16355 return false;
16356 }
16357
16358 return true;
16359 }
16360
16361 @Override
16362 public int hashCode() {
16363 List<Object> list = new ArrayList<Object>();
16364
16365 boolean present_projectName = true && (isSetProjectName());
16366 list.add(present_projectName);
16367 if (present_projectName)
16368 list.add(projectName);
16369
16370 boolean present_repositoryName = true && (isSetRepositoryName());
16371 list.add(present_repositoryName);
16372 if (present_repositoryName)
16373 list.add(repositoryName);
16374
16375 boolean present_revision = true && (isSetRevision());
16376 list.add(present_revision);
16377 if (present_revision)
16378 list.add(revision);
16379
16380 boolean present_pathPattern = true && (isSetPathPattern());
16381 list.add(present_pathPattern);
16382 if (present_pathPattern)
16383 list.add(pathPattern);
16384
16385 return list.hashCode();
16386 }
16387
16388 @Override
16389 public int compareTo(getFiles_args other) {
16390 if (!getClass().equals(other.getClass())) {
16391 return getClass().getName().compareTo(other.getClass().getName());
16392 }
16393
16394 int lastComparison = 0;
16395
16396 lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName());
16397 if (lastComparison != 0) {
16398 return lastComparison;
16399 }
16400 if (isSetProjectName()) {
16401 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName);
16402 if (lastComparison != 0) {
16403 return lastComparison;
16404 }
16405 }
16406 lastComparison = Boolean.valueOf(isSetRepositoryName()).compareTo(other.isSetRepositoryName());
16407 if (lastComparison != 0) {
16408 return lastComparison;
16409 }
16410 if (isSetRepositoryName()) {
16411 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.repositoryName, other.repositoryName);
16412 if (lastComparison != 0) {
16413 return lastComparison;
16414 }
16415 }
16416 lastComparison = Boolean.valueOf(isSetRevision()).compareTo(other.isSetRevision());
16417 if (lastComparison != 0) {
16418 return lastComparison;
16419 }
16420 if (isSetRevision()) {
16421 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.revision, other.revision);
16422 if (lastComparison != 0) {
16423 return lastComparison;
16424 }
16425 }
16426 lastComparison = Boolean.valueOf(isSetPathPattern()).compareTo(other.isSetPathPattern());
16427 if (lastComparison != 0) {
16428 return lastComparison;
16429 }
16430 if (isSetPathPattern()) {
16431 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pathPattern, other.pathPattern);
16432 if (lastComparison != 0) {
16433 return lastComparison;
16434 }
16435 }
16436 return 0;
16437 }
16438
16439 public _Fields fieldForId(int fieldId) {
16440 return _Fields.findByThriftId(fieldId);
16441 }
16442
16443 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16444 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
16445 }
16446
16447 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16448 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
16449 }
16450
16451 @Override
16452 public String toString() {
16453 StringBuilder sb = new StringBuilder("getFiles_args(");
16454 boolean first = true;
16455
16456 sb.append("projectName:");
16457 if (this.projectName == null) {
16458 sb.append("null");
16459 } else {
16460 sb.append(this.projectName);
16461 }
16462 first = false;
16463 if (!first) sb.append(", ");
16464 sb.append("repositoryName:");
16465 if (this.repositoryName == null) {
16466 sb.append("null");
16467 } else {
16468 sb.append(this.repositoryName);
16469 }
16470 first = false;
16471 if (!first) sb.append(", ");
16472 sb.append("revision:");
16473 if (this.revision == null) {
16474 sb.append("null");
16475 } else {
16476 sb.append(this.revision);
16477 }
16478 first = false;
16479 if (!first) sb.append(", ");
16480 sb.append("pathPattern:");
16481 if (this.pathPattern == null) {
16482 sb.append("null");
16483 } else {
16484 sb.append(this.pathPattern);
16485 }
16486 first = false;
16487 sb.append(")");
16488 return sb.toString();
16489 }
16490
16491 public void validate() throws org.apache.thrift.TException {
16492
16493
16494 if (revision != null) {
16495 revision.validate();
16496 }
16497 }
16498
16499 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16500 try {
16501 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16502 } catch (org.apache.thrift.TException te) {
16503 throw new java.io.IOException(te);
16504 }
16505 }
16506
16507 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16508 try {
16509 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16510 } catch (org.apache.thrift.TException te) {
16511 throw new java.io.IOException(te);
16512 }
16513 }
16514
16515 private static class getFiles_argsStandardSchemeFactory implements SchemeFactory {
16516 public getFiles_argsStandardScheme getScheme() {
16517 return new getFiles_argsStandardScheme();
16518 }
16519 }
16520
16521 private static class getFiles_argsStandardScheme extends StandardScheme<getFiles_args> {
16522
16523 public void read(org.apache.thrift.protocol.TProtocol iprot, getFiles_args struct) throws org.apache.thrift.TException {
16524 org.apache.thrift.protocol.TField schemeField;
16525 iprot.readStructBegin();
16526 while (true)
16527 {
16528 schemeField = iprot.readFieldBegin();
16529 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
16530 break;
16531 }
16532 switch (schemeField.id) {
16533 case 1:
16534 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
16535 struct.projectName = iprot.readString();
16536 struct.setProjectNameIsSet(true);
16537 } else {
16538 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
16539 }
16540 break;
16541 case 2:
16542 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
16543 struct.repositoryName = iprot.readString();
16544 struct.setRepositoryNameIsSet(true);
16545 } else {
16546 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
16547 }
16548 break;
16549 case 3:
16550 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
16551 struct.revision = new Revision();
16552 struct.revision.read(iprot);
16553 struct.setRevisionIsSet(true);
16554 } else {
16555 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
16556 }
16557 break;
16558 case 4:
16559 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
16560 struct.pathPattern = iprot.readString();
16561 struct.setPathPatternIsSet(true);
16562 } else {
16563 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
16564 }
16565 break;
16566 default:
16567 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
16568 }
16569 iprot.readFieldEnd();
16570 }
16571 iprot.readStructEnd();
16572
16573
16574 struct.validate();
16575 }
16576
16577 public void write(org.apache.thrift.protocol.TProtocol oprot, getFiles_args struct) throws org.apache.thrift.TException {
16578 struct.validate();
16579
16580 oprot.writeStructBegin(STRUCT_DESC);
16581 if (struct.projectName != null) {
16582 oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC);
16583 oprot.writeString(struct.projectName);
16584 oprot.writeFieldEnd();
16585 }
16586 if (struct.repositoryName != null) {
16587 oprot.writeFieldBegin(REPOSITORY_NAME_FIELD_DESC);
16588 oprot.writeString(struct.repositoryName);
16589 oprot.writeFieldEnd();
16590 }
16591 if (struct.revision != null) {
16592 oprot.writeFieldBegin(REVISION_FIELD_DESC);
16593 struct.revision.write(oprot);
16594 oprot.writeFieldEnd();
16595 }
16596 if (struct.pathPattern != null) {
16597 oprot.writeFieldBegin(PATH_PATTERN_FIELD_DESC);
16598 oprot.writeString(struct.pathPattern);
16599 oprot.writeFieldEnd();
16600 }
16601 oprot.writeFieldStop();
16602 oprot.writeStructEnd();
16603 }
16604
16605 }
16606
16607 private static class getFiles_argsTupleSchemeFactory implements SchemeFactory {
16608 public getFiles_argsTupleScheme getScheme() {
16609 return new getFiles_argsTupleScheme();
16610 }
16611 }
16612
16613 private static class getFiles_argsTupleScheme extends TupleScheme<getFiles_args> {
16614
16615 @Override
16616 public void write(org.apache.thrift.protocol.TProtocol prot, getFiles_args struct) throws org.apache.thrift.TException {
16617 TTupleProtocol oprot = (TTupleProtocol) prot;
16618 BitSet optionals = new BitSet();
16619 if (struct.isSetProjectName()) {
16620 optionals.set(0);
16621 }
16622 if (struct.isSetRepositoryName()) {
16623 optionals.set(1);
16624 }
16625 if (struct.isSetRevision()) {
16626 optionals.set(2);
16627 }
16628 if (struct.isSetPathPattern()) {
16629 optionals.set(3);
16630 }
16631 oprot.writeBitSet(optionals, 4);
16632 if (struct.isSetProjectName()) {
16633 oprot.writeString(struct.projectName);
16634 }
16635 if (struct.isSetRepositoryName()) {
16636 oprot.writeString(struct.repositoryName);
16637 }
16638 if (struct.isSetRevision()) {
16639 struct.revision.write(oprot);
16640 }
16641 if (struct.isSetPathPattern()) {
16642 oprot.writeString(struct.pathPattern);
16643 }
16644 }
16645
16646 @Override
16647 public void read(org.apache.thrift.protocol.TProtocol prot, getFiles_args struct) throws org.apache.thrift.TException {
16648 TTupleProtocol iprot = (TTupleProtocol) prot;
16649 BitSet incoming = iprot.readBitSet(4);
16650 if (incoming.get(0)) {
16651 struct.projectName = iprot.readString();
16652 struct.setProjectNameIsSet(true);
16653 }
16654 if (incoming.get(1)) {
16655 struct.repositoryName = iprot.readString();
16656 struct.setRepositoryNameIsSet(true);
16657 }
16658 if (incoming.get(2)) {
16659 struct.revision = new Revision();
16660 struct.revision.read(iprot);
16661 struct.setRevisionIsSet(true);
16662 }
16663 if (incoming.get(3)) {
16664 struct.pathPattern = iprot.readString();
16665 struct.setPathPatternIsSet(true);
16666 }
16667 }
16668 }
16669
16670 }
16671
16672 public static class getFiles_result implements org.apache.thrift.TBase<getFiles_result, getFiles_result._Fields>, java.io.Serializable, Cloneable, Comparable<getFiles_result> {
16673 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFiles_result");
16674
16675 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
16676 private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
16677
16678 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
16679 static {
16680 schemes.put(StandardScheme.class, new getFiles_resultStandardSchemeFactory());
16681 schemes.put(TupleScheme.class, new getFiles_resultTupleSchemeFactory());
16682 }
16683
16684 public List<Entry> success;
16685 public CentralDogmaException e;
16686
16687
16688 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16689 SUCCESS((short)0, "success"),
16690 E((short)1, "e");
16691
16692 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16693
16694 static {
16695 for (_Fields field : EnumSet.allOf(_Fields.class)) {
16696 byName.put(field.getFieldName(), field);
16697 }
16698 }
16699
16700
16701
16702
16703 public static _Fields findByThriftId(int fieldId) {
16704 switch(fieldId) {
16705 case 0:
16706 return SUCCESS;
16707 case 1:
16708 return E;
16709 default:
16710 return null;
16711 }
16712 }
16713
16714
16715
16716
16717
16718 public static _Fields findByThriftIdOrThrow(int fieldId) {
16719 _Fields fields = findByThriftId(fieldId);
16720 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16721 return fields;
16722 }
16723
16724
16725
16726
16727 public static _Fields findByName(String name) {
16728 return byName.get(name);
16729 }
16730
16731 private final short _thriftId;
16732 private final String _fieldName;
16733
16734 _Fields(short thriftId, String fieldName) {
16735 _thriftId = thriftId;
16736 _fieldName = fieldName;
16737 }
16738
16739 public short getThriftFieldId() {
16740 return _thriftId;
16741 }
16742
16743 public String getFieldName() {
16744 return _fieldName;
16745 }
16746 }
16747
16748
16749 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16750 static {
16751 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16752 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
16753 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
16754 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Entry.class))));
16755 tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
16756 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
16757 metaDataMap = Collections.unmodifiableMap(tmpMap);
16758 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFiles_result.class, metaDataMap);
16759 }
16760
16761 public getFiles_result() {
16762 }
16763
16764 public getFiles_result(
16765 List<Entry> success,
16766 CentralDogmaException e)
16767 {
16768 this();
16769 this.success = success;
16770 this.e = e;
16771 }
16772
16773
16774
16775
16776 public getFiles_result(getFiles_result other) {
16777 if (other.isSetSuccess()) {
16778 List<Entry> __this__success = new ArrayList<Entry>(other.success.size());
16779 for (Entry other_element : other.success) {
16780 __this__success.add(new Entry(other_element));
16781 }
16782 this.success = __this__success;
16783 }
16784 if (other.isSetE()) {
16785 this.e = new CentralDogmaException(other.e);
16786 }
16787 }
16788
16789 public getFiles_result deepCopy() {
16790 return new getFiles_result(this);
16791 }
16792
16793 @Override
16794 public void clear() {
16795 this.success = null;
16796 this.e = null;
16797 }
16798
16799 public int getSuccessSize() {
16800 return (this.success == null) ? 0 : this.success.size();
16801 }
16802
16803 public java.util.Iterator<Entry> getSuccessIterator() {
16804 return (this.success == null) ? null : this.success.iterator();
16805 }
16806
16807 public void addToSuccess(Entry elem) {
16808 if (this.success == null) {
16809 this.success = new ArrayList<Entry>();
16810 }
16811 this.success.add(elem);
16812 }
16813
16814 public List<Entry> getSuccess() {
16815 return this.success;
16816 }
16817
16818 public getFiles_result setSuccess(List<Entry> success) {
16819 this.success = success;
16820 return this;
16821 }
16822
16823 public void unsetSuccess() {
16824 this.success = null;
16825 }
16826
16827
16828 public boolean isSetSuccess() {
16829 return this.success != null;
16830 }
16831
16832 public void setSuccessIsSet(boolean value) {
16833 if (!value) {
16834 this.success = null;
16835 }
16836 }
16837
16838 public CentralDogmaException getE() {
16839 return this.e;
16840 }
16841
16842 public getFiles_result setE(CentralDogmaException e) {
16843 this.e = e;
16844 return this;
16845 }
16846
16847 public void unsetE() {
16848 this.e = null;
16849 }
16850
16851
16852 public boolean isSetE() {
16853 return this.e != null;
16854 }
16855
16856 public void setEIsSet(boolean value) {
16857 if (!value) {
16858 this.e = null;
16859 }
16860 }
16861
16862 public void setFieldValue(_Fields field, Object value) {
16863 switch (field) {
16864 case SUCCESS:
16865 if (value == null) {
16866 unsetSuccess();
16867 } else {
16868 setSuccess((List<Entry>)value);
16869 }
16870 break;
16871
16872 case E:
16873 if (value == null) {
16874 unsetE();
16875 } else {
16876 setE((CentralDogmaException)value);
16877 }
16878 break;
16879
16880 }
16881 }
16882
16883 public Object getFieldValue(_Fields field) {
16884 switch (field) {
16885 case SUCCESS:
16886 return getSuccess();
16887
16888 case E:
16889 return getE();
16890
16891 }
16892 throw new IllegalStateException();
16893 }
16894
16895
16896 public boolean isSet(_Fields field) {
16897 if (field == null) {
16898 throw new IllegalArgumentException();
16899 }
16900
16901 switch (field) {
16902 case SUCCESS:
16903 return isSetSuccess();
16904 case E:
16905 return isSetE();
16906 }
16907 throw new IllegalStateException();
16908 }
16909
16910 @Override
16911 public boolean equals(Object that) {
16912 if (that == null)
16913 return false;
16914 if (that instanceof getFiles_result)
16915 return this.equals((getFiles_result)that);
16916 return false;
16917 }
16918
16919 public boolean equals(getFiles_result that) {
16920 if (that == null)
16921 return false;
16922
16923 boolean this_present_success = true && this.isSetSuccess();
16924 boolean that_present_success = true && that.isSetSuccess();
16925 if (this_present_success || that_present_success) {
16926 if (!(this_present_success && that_present_success))
16927 return false;
16928 if (!this.success.equals(that.success))
16929 return false;
16930 }
16931
16932 boolean this_present_e = true && this.isSetE();
16933 boolean that_present_e = true && that.isSetE();
16934 if (this_present_e || that_present_e) {
16935 if (!(this_present_e && that_present_e))
16936 return false;
16937 if (!this.e.equals(that.e))
16938 return false;
16939 }
16940
16941 return true;
16942 }
16943
16944 @Override
16945 public int hashCode() {
16946 List<Object> list = new ArrayList<Object>();
16947
16948 boolean present_success = true && (isSetSuccess());
16949 list.add(present_success);
16950 if (present_success)
16951 list.add(success);
16952
16953 boolean present_e = true && (isSetE());
16954 list.add(present_e);
16955 if (present_e)
16956 list.add(e);
16957
16958 return list.hashCode();
16959 }
16960
16961 @Override
16962 public int compareTo(getFiles_result other) {
16963 if (!getClass().equals(other.getClass())) {
16964 return getClass().getName().compareTo(other.getClass().getName());
16965 }
16966
16967 int lastComparison = 0;
16968
16969 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
16970 if (lastComparison != 0) {
16971 return lastComparison;
16972 }
16973 if (isSetSuccess()) {
16974 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
16975 if (lastComparison != 0) {
16976 return lastComparison;
16977 }
16978 }
16979 lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE());
16980 if (lastComparison != 0) {
16981 return lastComparison;
16982 }
16983 if (isSetE()) {
16984 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e);
16985 if (lastComparison != 0) {
16986 return lastComparison;
16987 }
16988 }
16989 return 0;
16990 }
16991
16992 public _Fields fieldForId(int fieldId) {
16993 return _Fields.findByThriftId(fieldId);
16994 }
16995
16996 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16997 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
16998 }
16999
17000 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17001 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
17002 }
17003
17004 @Override
17005 public String toString() {
17006 StringBuilder sb = new StringBuilder("getFiles_result(");
17007 boolean first = true;
17008
17009 sb.append("success:");
17010 if (this.success == null) {
17011 sb.append("null");
17012 } else {
17013 sb.append(this.success);
17014 }
17015 first = false;
17016 if (!first) sb.append(", ");
17017 sb.append("e:");
17018 if (this.e == null) {
17019 sb.append("null");
17020 } else {
17021 sb.append(this.e);
17022 }
17023 first = false;
17024 sb.append(")");
17025 return sb.toString();
17026 }
17027
17028 public void validate() throws org.apache.thrift.TException {
17029
17030
17031 }
17032
17033 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17034 try {
17035 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17036 } catch (org.apache.thrift.TException te) {
17037 throw new java.io.IOException(te);
17038 }
17039 }
17040
17041 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17042 try {
17043 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17044 } catch (org.apache.thrift.TException te) {
17045 throw new java.io.IOException(te);
17046 }
17047 }
17048
17049 private static class getFiles_resultStandardSchemeFactory implements SchemeFactory {
17050 public getFiles_resultStandardScheme getScheme() {
17051 return new getFiles_resultStandardScheme();
17052 }
17053 }
17054
17055 private static class getFiles_resultStandardScheme extends StandardScheme<getFiles_result> {
17056
17057 public void read(org.apache.thrift.protocol.TProtocol iprot, getFiles_result struct) throws org.apache.thrift.TException {
17058 org.apache.thrift.protocol.TField schemeField;
17059 iprot.readStructBegin();
17060 while (true)
17061 {
17062 schemeField = iprot.readFieldBegin();
17063 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
17064 break;
17065 }
17066 switch (schemeField.id) {
17067 case 0:
17068 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
17069 {
17070 org.apache.thrift.protocol.TList _list112 = iprot.readListBegin();
17071 struct.success = new ArrayList<Entry>(_list112.size);
17072 Entry _elem113;
17073 for (int _i114 = 0; _i114 < _list112.size; ++_i114)
17074 {
17075 _elem113 = new Entry();
17076 _elem113.read(iprot);
17077 struct.success.add(_elem113);
17078 }
17079 iprot.readListEnd();
17080 }
17081 struct.setSuccessIsSet(true);
17082 } else {
17083 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
17084 }
17085 break;
17086 case 1:
17087 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
17088 struct.e = new CentralDogmaException();
17089 struct.e.read(iprot);
17090 struct.setEIsSet(true);
17091 } else {
17092 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
17093 }
17094 break;
17095 default:
17096 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
17097 }
17098 iprot.readFieldEnd();
17099 }
17100 iprot.readStructEnd();
17101
17102
17103 struct.validate();
17104 }
17105
17106 public void write(org.apache.thrift.protocol.TProtocol oprot, getFiles_result struct) throws org.apache.thrift.TException {
17107 struct.validate();
17108
17109 oprot.writeStructBegin(STRUCT_DESC);
17110 if (struct.success != null) {
17111 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
17112 {
17113 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
17114 for (Entry _iter115 : struct.success)
17115 {
17116 _iter115.write(oprot);
17117 }
17118 oprot.writeListEnd();
17119 }
17120 oprot.writeFieldEnd();
17121 }
17122 if (struct.e != null) {
17123 oprot.writeFieldBegin(E_FIELD_DESC);
17124 struct.e.write(oprot);
17125 oprot.writeFieldEnd();
17126 }
17127 oprot.writeFieldStop();
17128 oprot.writeStructEnd();
17129 }
17130
17131 }
17132
17133 private static class getFiles_resultTupleSchemeFactory implements SchemeFactory {
17134 public getFiles_resultTupleScheme getScheme() {
17135 return new getFiles_resultTupleScheme();
17136 }
17137 }
17138
17139 private static class getFiles_resultTupleScheme extends TupleScheme<getFiles_result> {
17140
17141 @Override
17142 public void write(org.apache.thrift.protocol.TProtocol prot, getFiles_result struct) throws org.apache.thrift.TException {
17143 TTupleProtocol oprot = (TTupleProtocol) prot;
17144 BitSet optionals = new BitSet();
17145 if (struct.isSetSuccess()) {
17146 optionals.set(0);
17147 }
17148 if (struct.isSetE()) {
17149 optionals.set(1);
17150 }
17151 oprot.writeBitSet(optionals, 2);
17152 if (struct.isSetSuccess()) {
17153 {
17154 oprot.writeI32(struct.success.size());
17155 for (Entry _iter116 : struct.success)
17156 {
17157 _iter116.write(oprot);
17158 }
17159 }
17160 }
17161 if (struct.isSetE()) {
17162 struct.e.write(oprot);
17163 }
17164 }
17165
17166 @Override
17167 public void read(org.apache.thrift.protocol.TProtocol prot, getFiles_result struct) throws org.apache.thrift.TException {
17168 TTupleProtocol iprot = (TTupleProtocol) prot;
17169 BitSet incoming = iprot.readBitSet(2);
17170 if (incoming.get(0)) {
17171 {
17172 org.apache.thrift.protocol.TList _list117 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
17173 struct.success = new ArrayList<Entry>(_list117.size);
17174 Entry _elem118;
17175 for (int _i119 = 0; _i119 < _list117.size; ++_i119)
17176 {
17177 _elem118 = new Entry();
17178 _elem118.read(iprot);
17179 struct.success.add(_elem118);
17180 }
17181 }
17182 struct.setSuccessIsSet(true);
17183 }
17184 if (incoming.get(1)) {
17185 struct.e = new CentralDogmaException();
17186 struct.e.read(iprot);
17187 struct.setEIsSet(true);
17188 }
17189 }
17190 }
17191
17192 }
17193
17194 public static class getHistory_args implements org.apache.thrift.TBase<getHistory_args, getHistory_args._Fields>, java.io.Serializable, Cloneable, Comparable<getHistory_args> {
17195 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHistory_args");
17196
17197 private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)1);
17198 private static final org.apache.thrift.protocol.TField REPOSITORY_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("repositoryName", org.apache.thrift.protocol.TType.STRING, (short)2);
17199 private static final org.apache.thrift.protocol.TField FROM_REVISION_FIELD_DESC = new org.apache.thrift.protocol.TField("from", org.apache.thrift.protocol.TType.STRUCT, (short)3);
17200 private static final org.apache.thrift.protocol.TField TO_REVISION_FIELD_DESC = new org.apache.thrift.protocol.TField("to", org.apache.thrift.protocol.TType.STRUCT, (short)4);
17201 private static final org.apache.thrift.protocol.TField PATH_PATTERN_FIELD_DESC = new org.apache.thrift.protocol.TField("pathPattern", org.apache.thrift.protocol.TType.STRING, (short)5);
17202
17203 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
17204 static {
17205 schemes.put(StandardScheme.class, new getHistory_argsStandardSchemeFactory());
17206 schemes.put(TupleScheme.class, new getHistory_argsTupleSchemeFactory());
17207 }
17208
17209 public String projectName;
17210 public String repositoryName;
17211 public Revision from;
17212 public Revision to;
17213 public String pathPattern;
17214
17215
17216 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17217 PROJECT_NAME((short)1, "projectName"),
17218 REPOSITORY_NAME((short)2, "repositoryName"),
17219 FROM_REVISION((short)3, "from"),
17220 TO_REVISION((short)4, "to"),
17221 PATH_PATTERN((short)5, "pathPattern");
17222
17223 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17224
17225 static {
17226 for (_Fields field : EnumSet.allOf(_Fields.class)) {
17227 byName.put(field.getFieldName(), field);
17228 }
17229 }
17230
17231
17232
17233
17234 public static _Fields findByThriftId(int fieldId) {
17235 switch(fieldId) {
17236 case 1:
17237 return PROJECT_NAME;
17238 case 2:
17239 return REPOSITORY_NAME;
17240 case 3:
17241 return FROM_REVISION;
17242 case 4:
17243 return TO_REVISION;
17244 case 5:
17245 return PATH_PATTERN;
17246 default:
17247 return null;
17248 }
17249 }
17250
17251
17252
17253
17254
17255 public static _Fields findByThriftIdOrThrow(int fieldId) {
17256 _Fields fields = findByThriftId(fieldId);
17257 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17258 return fields;
17259 }
17260
17261
17262
17263
17264 public static _Fields findByName(String name) {
17265 return byName.get(name);
17266 }
17267
17268 private final short _thriftId;
17269 private final String _fieldName;
17270
17271 _Fields(short thriftId, String fieldName) {
17272 _thriftId = thriftId;
17273 _fieldName = fieldName;
17274 }
17275
17276 public short getThriftFieldId() {
17277 return _thriftId;
17278 }
17279
17280 public String getFieldName() {
17281 return _fieldName;
17282 }
17283 }
17284
17285
17286 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17287 static {
17288 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17289 tmpMap.put(_Fields.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", org.apache.thrift.TFieldRequirementType.DEFAULT,
17290 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
17291 tmpMap.put(_Fields.REPOSITORY_NAME, new org.apache.thrift.meta_data.FieldMetaData("repositoryName", org.apache.thrift.TFieldRequirementType.DEFAULT,
17292 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
17293 tmpMap.put(_Fields.FROM_REVISION, new org.apache.thrift.meta_data.FieldMetaData("from", org.apache.thrift.TFieldRequirementType.DEFAULT,
17294 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Revision.class)));
17295 tmpMap.put(_Fields.TO_REVISION, new org.apache.thrift.meta_data.FieldMetaData("to", org.apache.thrift.TFieldRequirementType.DEFAULT,
17296 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Revision.class)));
17297 tmpMap.put(_Fields.PATH_PATTERN, new org.apache.thrift.meta_data.FieldMetaData("pathPattern", org.apache.thrift.TFieldRequirementType.DEFAULT,
17298 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
17299 metaDataMap = Collections.unmodifiableMap(tmpMap);
17300 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHistory_args.class, metaDataMap);
17301 }
17302
17303 public getHistory_args() {
17304 }
17305
17306 public getHistory_args(
17307 String projectName,
17308 String repositoryName,
17309 Revision from,
17310 Revision to,
17311 String pathPattern)
17312 {
17313 this();
17314 this.projectName = projectName;
17315 this.repositoryName = repositoryName;
17316 this.from = from;
17317 this.to = to;
17318 this.pathPattern = pathPattern;
17319 }
17320
17321
17322
17323
17324 public getHistory_args(getHistory_args other) {
17325 if (other.isSetProjectName()) {
17326 this.projectName = other.projectName;
17327 }
17328 if (other.isSetRepositoryName()) {
17329 this.repositoryName = other.repositoryName;
17330 }
17331 if (other.isSetFromRevision()) {
17332 this.from = new Revision(other.from);
17333 }
17334 if (other.isSetToRevision()) {
17335 this.to = new Revision(other.to);
17336 }
17337 if (other.isSetPathPattern()) {
17338 this.pathPattern = other.pathPattern;
17339 }
17340 }
17341
17342 public getHistory_args deepCopy() {
17343 return new getHistory_args(this);
17344 }
17345
17346 @Override
17347 public void clear() {
17348 this.projectName = null;
17349 this.repositoryName = null;
17350 this.from = null;
17351 this.to = null;
17352 this.pathPattern = null;
17353 }
17354
17355 public String getProjectName() {
17356 return this.projectName;
17357 }
17358
17359 public getHistory_args setProjectName(String projectName) {
17360 this.projectName = projectName;
17361 return this;
17362 }
17363
17364 public void unsetProjectName() {
17365 this.projectName = null;
17366 }
17367
17368
17369 public boolean isSetProjectName() {
17370 return this.projectName != null;
17371 }
17372
17373 public void setProjectNameIsSet(boolean value) {
17374 if (!value) {
17375 this.projectName = null;
17376 }
17377 }
17378
17379 public String getRepositoryName() {
17380 return this.repositoryName;
17381 }
17382
17383 public getHistory_args setRepositoryName(String repositoryName) {
17384 this.repositoryName = repositoryName;
17385 return this;
17386 }
17387
17388 public void unsetRepositoryName() {
17389 this.repositoryName = null;
17390 }
17391
17392
17393 public boolean isSetRepositoryName() {
17394 return this.repositoryName != null;
17395 }
17396
17397 public void setRepositoryNameIsSet(boolean value) {
17398 if (!value) {
17399 this.repositoryName = null;
17400 }
17401 }
17402
17403 public Revision getFromRevision() {
17404 return this.from;
17405 }
17406
17407 public getHistory_args setFromRevision(Revision from) {
17408 this.from = from;
17409 return this;
17410 }
17411
17412 public void unsetFromRevision() {
17413 this.from = null;
17414 }
17415
17416
17417 public boolean isSetFromRevision() {
17418 return this.from != null;
17419 }
17420
17421 public void setFromRevisionIsSet(boolean value) {
17422 if (!value) {
17423 this.from = null;
17424 }
17425 }
17426
17427 public Revision getToRevision() {
17428 return this.to;
17429 }
17430
17431 public getHistory_args setToRevision(Revision to) {
17432 this.to = to;
17433 return this;
17434 }
17435
17436 public void unsetToRevision() {
17437 this.to = null;
17438 }
17439
17440
17441 public boolean isSetToRevision() {
17442 return this.to != null;
17443 }
17444
17445 public void setToRevisionIsSet(boolean value) {
17446 if (!value) {
17447 this.to = null;
17448 }
17449 }
17450
17451 public String getPathPattern() {
17452 return this.pathPattern;
17453 }
17454
17455 public getHistory_args setPathPattern(String pathPattern) {
17456 this.pathPattern = pathPattern;
17457 return this;
17458 }
17459
17460 public void unsetPathPattern() {
17461 this.pathPattern = null;
17462 }
17463
17464
17465 public boolean isSetPathPattern() {
17466 return this.pathPattern != null;
17467 }
17468
17469 public void setPathPatternIsSet(boolean value) {
17470 if (!value) {
17471 this.pathPattern = null;
17472 }
17473 }
17474
17475 public void setFieldValue(_Fields field, Object value) {
17476 switch (field) {
17477 case PROJECT_NAME:
17478 if (value == null) {
17479 unsetProjectName();
17480 } else {
17481 setProjectName((String)value);
17482 }
17483 break;
17484
17485 case REPOSITORY_NAME:
17486 if (value == null) {
17487 unsetRepositoryName();
17488 } else {
17489 setRepositoryName((String)value);
17490 }
17491 break;
17492
17493 case FROM_REVISION:
17494 if (value == null) {
17495 unsetFromRevision();
17496 } else {
17497 setFromRevision((Revision)value);
17498 }
17499 break;
17500
17501 case TO_REVISION:
17502 if (value == null) {
17503 unsetToRevision();
17504 } else {
17505 setToRevision((Revision)value);
17506 }
17507 break;
17508
17509 case PATH_PATTERN:
17510 if (value == null) {
17511 unsetPathPattern();
17512 } else {
17513 setPathPattern((String)value);
17514 }
17515 break;
17516
17517 }
17518 }
17519
17520 public Object getFieldValue(_Fields field) {
17521 switch (field) {
17522 case PROJECT_NAME:
17523 return getProjectName();
17524
17525 case REPOSITORY_NAME:
17526 return getRepositoryName();
17527
17528 case FROM_REVISION:
17529 return getFromRevision();
17530
17531 case TO_REVISION:
17532 return getToRevision();
17533
17534 case PATH_PATTERN:
17535 return getPathPattern();
17536
17537 }
17538 throw new IllegalStateException();
17539 }
17540
17541
17542 public boolean isSet(_Fields field) {
17543 if (field == null) {
17544 throw new IllegalArgumentException();
17545 }
17546
17547 switch (field) {
17548 case PROJECT_NAME:
17549 return isSetProjectName();
17550 case REPOSITORY_NAME:
17551 return isSetRepositoryName();
17552 case FROM_REVISION:
17553 return isSetFromRevision();
17554 case TO_REVISION:
17555 return isSetToRevision();
17556 case PATH_PATTERN:
17557 return isSetPathPattern();
17558 }
17559 throw new IllegalStateException();
17560 }
17561
17562 @Override
17563 public boolean equals(Object that) {
17564 if (that == null)
17565 return false;
17566 if (that instanceof getHistory_args)
17567 return this.equals((getHistory_args)that);
17568 return false;
17569 }
17570
17571 public boolean equals(getHistory_args that) {
17572 if (that == null)
17573 return false;
17574
17575 boolean this_present_projectName = true && this.isSetProjectName();
17576 boolean that_present_projectName = true && that.isSetProjectName();
17577 if (this_present_projectName || that_present_projectName) {
17578 if (!(this_present_projectName && that_present_projectName))
17579 return false;
17580 if (!this.projectName.equals(that.projectName))
17581 return false;
17582 }
17583
17584 boolean this_present_repositoryName = true && this.isSetRepositoryName();
17585 boolean that_present_repositoryName = true && that.isSetRepositoryName();
17586 if (this_present_repositoryName || that_present_repositoryName) {
17587 if (!(this_present_repositoryName && that_present_repositoryName))
17588 return false;
17589 if (!this.repositoryName.equals(that.repositoryName))
17590 return false;
17591 }
17592
17593 boolean this_present_from = true && this.isSetFromRevision();
17594 boolean that_present_from = true && that.isSetFromRevision();
17595 if (this_present_from || that_present_from) {
17596 if (!(this_present_from && that_present_from))
17597 return false;
17598 if (!this.from.equals(that.from))
17599 return false;
17600 }
17601
17602 boolean this_present_to = true && this.isSetToRevision();
17603 boolean that_present_to = true && that.isSetToRevision();
17604 if (this_present_to || that_present_to) {
17605 if (!(this_present_to && that_present_to))
17606 return false;
17607 if (!this.to.equals(that.to))
17608 return false;
17609 }
17610
17611 boolean this_present_pathPattern = true && this.isSetPathPattern();
17612 boolean that_present_pathPattern = true && that.isSetPathPattern();
17613 if (this_present_pathPattern || that_present_pathPattern) {
17614 if (!(this_present_pathPattern && that_present_pathPattern))
17615 return false;
17616 if (!this.pathPattern.equals(that.pathPattern))
17617 return false;
17618 }
17619
17620 return true;
17621 }
17622
17623 @Override
17624 public int hashCode() {
17625 List<Object> list = new ArrayList<Object>();
17626
17627 boolean present_projectName = true && (isSetProjectName());
17628 list.add(present_projectName);
17629 if (present_projectName)
17630 list.add(projectName);
17631
17632 boolean present_repositoryName = true && (isSetRepositoryName());
17633 list.add(present_repositoryName);
17634 if (present_repositoryName)
17635 list.add(repositoryName);
17636
17637 boolean present_from = true && (isSetFromRevision());
17638 list.add(present_from);
17639 if (present_from)
17640 list.add(from);
17641
17642 boolean present_to = true && (isSetToRevision());
17643 list.add(present_to);
17644 if (present_to)
17645 list.add(to);
17646
17647 boolean present_pathPattern = true && (isSetPathPattern());
17648 list.add(present_pathPattern);
17649 if (present_pathPattern)
17650 list.add(pathPattern);
17651
17652 return list.hashCode();
17653 }
17654
17655 @Override
17656 public int compareTo(getHistory_args other) {
17657 if (!getClass().equals(other.getClass())) {
17658 return getClass().getName().compareTo(other.getClass().getName());
17659 }
17660
17661 int lastComparison = 0;
17662
17663 lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName());
17664 if (lastComparison != 0) {
17665 return lastComparison;
17666 }
17667 if (isSetProjectName()) {
17668 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName);
17669 if (lastComparison != 0) {
17670 return lastComparison;
17671 }
17672 }
17673 lastComparison = Boolean.valueOf(isSetRepositoryName()).compareTo(other.isSetRepositoryName());
17674 if (lastComparison != 0) {
17675 return lastComparison;
17676 }
17677 if (isSetRepositoryName()) {
17678 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.repositoryName, other.repositoryName);
17679 if (lastComparison != 0) {
17680 return lastComparison;
17681 }
17682 }
17683 lastComparison = Boolean.valueOf(isSetFromRevision()).compareTo(other.isSetFromRevision());
17684 if (lastComparison != 0) {
17685 return lastComparison;
17686 }
17687 if (isSetFromRevision()) {
17688 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.from, other.from);
17689 if (lastComparison != 0) {
17690 return lastComparison;
17691 }
17692 }
17693 lastComparison = Boolean.valueOf(isSetToRevision()).compareTo(other.isSetToRevision());
17694 if (lastComparison != 0) {
17695 return lastComparison;
17696 }
17697 if (isSetToRevision()) {
17698 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.to, other.to);
17699 if (lastComparison != 0) {
17700 return lastComparison;
17701 }
17702 }
17703 lastComparison = Boolean.valueOf(isSetPathPattern()).compareTo(other.isSetPathPattern());
17704 if (lastComparison != 0) {
17705 return lastComparison;
17706 }
17707 if (isSetPathPattern()) {
17708 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pathPattern, other.pathPattern);
17709 if (lastComparison != 0) {
17710 return lastComparison;
17711 }
17712 }
17713 return 0;
17714 }
17715
17716 public _Fields fieldForId(int fieldId) {
17717 return _Fields.findByThriftId(fieldId);
17718 }
17719
17720 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17721 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
17722 }
17723
17724 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17725 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
17726 }
17727
17728 @Override
17729 public String toString() {
17730 StringBuilder sb = new StringBuilder("getHistory_args(");
17731 boolean first = true;
17732
17733 sb.append("projectName:");
17734 if (this.projectName == null) {
17735 sb.append("null");
17736 } else {
17737 sb.append(this.projectName);
17738 }
17739 first = false;
17740 if (!first) sb.append(", ");
17741 sb.append("repositoryName:");
17742 if (this.repositoryName == null) {
17743 sb.append("null");
17744 } else {
17745 sb.append(this.repositoryName);
17746 }
17747 first = false;
17748 if (!first) sb.append(", ");
17749 sb.append("from:");
17750 if (this.from == null) {
17751 sb.append("null");
17752 } else {
17753 sb.append(this.from);
17754 }
17755 first = false;
17756 if (!first) sb.append(", ");
17757 sb.append("to:");
17758 if (this.to == null) {
17759 sb.append("null");
17760 } else {
17761 sb.append(this.to);
17762 }
17763 first = false;
17764 if (!first) sb.append(", ");
17765 sb.append("pathPattern:");
17766 if (this.pathPattern == null) {
17767 sb.append("null");
17768 } else {
17769 sb.append(this.pathPattern);
17770 }
17771 first = false;
17772 sb.append(")");
17773 return sb.toString();
17774 }
17775
17776 public void validate() throws org.apache.thrift.TException {
17777
17778
17779 if (from != null) {
17780 from.validate();
17781 }
17782 if (to != null) {
17783 to.validate();
17784 }
17785 }
17786
17787 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17788 try {
17789 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17790 } catch (org.apache.thrift.TException te) {
17791 throw new java.io.IOException(te);
17792 }
17793 }
17794
17795 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17796 try {
17797 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17798 } catch (org.apache.thrift.TException te) {
17799 throw new java.io.IOException(te);
17800 }
17801 }
17802
17803 private static class getHistory_argsStandardSchemeFactory implements SchemeFactory {
17804 public getHistory_argsStandardScheme getScheme() {
17805 return new getHistory_argsStandardScheme();
17806 }
17807 }
17808
17809 private static class getHistory_argsStandardScheme extends StandardScheme<getHistory_args> {
17810
17811 public void read(org.apache.thrift.protocol.TProtocol iprot, getHistory_args struct) throws org.apache.thrift.TException {
17812 org.apache.thrift.protocol.TField schemeField;
17813 iprot.readStructBegin();
17814 while (true)
17815 {
17816 schemeField = iprot.readFieldBegin();
17817 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
17818 break;
17819 }
17820 switch (schemeField.id) {
17821 case 1:
17822 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
17823 struct.projectName = iprot.readString();
17824 struct.setProjectNameIsSet(true);
17825 } else {
17826 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
17827 }
17828 break;
17829 case 2:
17830 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
17831 struct.repositoryName = iprot.readString();
17832 struct.setRepositoryNameIsSet(true);
17833 } else {
17834 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
17835 }
17836 break;
17837 case 3:
17838 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
17839 struct.from = new Revision();
17840 struct.from.read(iprot);
17841 struct.setFromRevisionIsSet(true);
17842 } else {
17843 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
17844 }
17845 break;
17846 case 4:
17847 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
17848 struct.to = new Revision();
17849 struct.to.read(iprot);
17850 struct.setToRevisionIsSet(true);
17851 } else {
17852 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
17853 }
17854 break;
17855 case 5:
17856 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
17857 struct.pathPattern = iprot.readString();
17858 struct.setPathPatternIsSet(true);
17859 } else {
17860 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
17861 }
17862 break;
17863 default:
17864 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
17865 }
17866 iprot.readFieldEnd();
17867 }
17868 iprot.readStructEnd();
17869
17870
17871 struct.validate();
17872 }
17873
17874 public void write(org.apache.thrift.protocol.TProtocol oprot, getHistory_args struct) throws org.apache.thrift.TException {
17875 struct.validate();
17876
17877 oprot.writeStructBegin(STRUCT_DESC);
17878 if (struct.projectName != null) {
17879 oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC);
17880 oprot.writeString(struct.projectName);
17881 oprot.writeFieldEnd();
17882 }
17883 if (struct.repositoryName != null) {
17884 oprot.writeFieldBegin(REPOSITORY_NAME_FIELD_DESC);
17885 oprot.writeString(struct.repositoryName);
17886 oprot.writeFieldEnd();
17887 }
17888 if (struct.from != null) {
17889 oprot.writeFieldBegin(FROM_REVISION_FIELD_DESC);
17890 struct.from.write(oprot);
17891 oprot.writeFieldEnd();
17892 }
17893 if (struct.to != null) {
17894 oprot.writeFieldBegin(TO_REVISION_FIELD_DESC);
17895 struct.to.write(oprot);
17896 oprot.writeFieldEnd();
17897 }
17898 if (struct.pathPattern != null) {
17899 oprot.writeFieldBegin(PATH_PATTERN_FIELD_DESC);
17900 oprot.writeString(struct.pathPattern);
17901 oprot.writeFieldEnd();
17902 }
17903 oprot.writeFieldStop();
17904 oprot.writeStructEnd();
17905 }
17906
17907 }
17908
17909 private static class getHistory_argsTupleSchemeFactory implements SchemeFactory {
17910 public getHistory_argsTupleScheme getScheme() {
17911 return new getHistory_argsTupleScheme();
17912 }
17913 }
17914
17915 private static class getHistory_argsTupleScheme extends TupleScheme<getHistory_args> {
17916
17917 @Override
17918 public void write(org.apache.thrift.protocol.TProtocol prot, getHistory_args struct) throws org.apache.thrift.TException {
17919 TTupleProtocol oprot = (TTupleProtocol) prot;
17920 BitSet optionals = new BitSet();
17921 if (struct.isSetProjectName()) {
17922 optionals.set(0);
17923 }
17924 if (struct.isSetRepositoryName()) {
17925 optionals.set(1);
17926 }
17927 if (struct.isSetFromRevision()) {
17928 optionals.set(2);
17929 }
17930 if (struct.isSetToRevision()) {
17931 optionals.set(3);
17932 }
17933 if (struct.isSetPathPattern()) {
17934 optionals.set(4);
17935 }
17936 oprot.writeBitSet(optionals, 5);
17937 if (struct.isSetProjectName()) {
17938 oprot.writeString(struct.projectName);
17939 }
17940 if (struct.isSetRepositoryName()) {
17941 oprot.writeString(struct.repositoryName);
17942 }
17943 if (struct.isSetFromRevision()) {
17944 struct.from.write(oprot);
17945 }
17946 if (struct.isSetToRevision()) {
17947 struct.to.write(oprot);
17948 }
17949 if (struct.isSetPathPattern()) {
17950 oprot.writeString(struct.pathPattern);
17951 }
17952 }
17953
17954 @Override
17955 public void read(org.apache.thrift.protocol.TProtocol prot, getHistory_args struct) throws org.apache.thrift.TException {
17956 TTupleProtocol iprot = (TTupleProtocol) prot;
17957 BitSet incoming = iprot.readBitSet(5);
17958 if (incoming.get(0)) {
17959 struct.projectName = iprot.readString();
17960 struct.setProjectNameIsSet(true);
17961 }
17962 if (incoming.get(1)) {
17963 struct.repositoryName = iprot.readString();
17964 struct.setRepositoryNameIsSet(true);
17965 }
17966 if (incoming.get(2)) {
17967 struct.from = new Revision();
17968 struct.from.read(iprot);
17969 struct.setFromRevisionIsSet(true);
17970 }
17971 if (incoming.get(3)) {
17972 struct.to = new Revision();
17973 struct.to.read(iprot);
17974 struct.setToRevisionIsSet(true);
17975 }
17976 if (incoming.get(4)) {
17977 struct.pathPattern = iprot.readString();
17978 struct.setPathPatternIsSet(true);
17979 }
17980 }
17981 }
17982
17983 }
17984
17985 public static class getHistory_result implements org.apache.thrift.TBase<getHistory_result, getHistory_result._Fields>, java.io.Serializable, Cloneable, Comparable<getHistory_result> {
17986 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHistory_result");
17987
17988 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
17989 private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
17990
17991 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
17992 static {
17993 schemes.put(StandardScheme.class, new getHistory_resultStandardSchemeFactory());
17994 schemes.put(TupleScheme.class, new getHistory_resultTupleSchemeFactory());
17995 }
17996
17997 public List<Commit> success;
17998 public CentralDogmaException e;
17999
18000
18001 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18002 SUCCESS((short)0, "success"),
18003 E((short)1, "e");
18004
18005 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18006
18007 static {
18008 for (_Fields field : EnumSet.allOf(_Fields.class)) {
18009 byName.put(field.getFieldName(), field);
18010 }
18011 }
18012
18013
18014
18015
18016 public static _Fields findByThriftId(int fieldId) {
18017 switch(fieldId) {
18018 case 0:
18019 return SUCCESS;
18020 case 1:
18021 return E;
18022 default:
18023 return null;
18024 }
18025 }
18026
18027
18028
18029
18030
18031 public static _Fields findByThriftIdOrThrow(int fieldId) {
18032 _Fields fields = findByThriftId(fieldId);
18033 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18034 return fields;
18035 }
18036
18037
18038
18039
18040 public static _Fields findByName(String name) {
18041 return byName.get(name);
18042 }
18043
18044 private final short _thriftId;
18045 private final String _fieldName;
18046
18047 _Fields(short thriftId, String fieldName) {
18048 _thriftId = thriftId;
18049 _fieldName = fieldName;
18050 }
18051
18052 public short getThriftFieldId() {
18053 return _thriftId;
18054 }
18055
18056 public String getFieldName() {
18057 return _fieldName;
18058 }
18059 }
18060
18061
18062 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18063 static {
18064 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18065 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
18066 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
18067 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Commit.class))));
18068 tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
18069 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
18070 metaDataMap = Collections.unmodifiableMap(tmpMap);
18071 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHistory_result.class, metaDataMap);
18072 }
18073
18074 public getHistory_result() {
18075 }
18076
18077 public getHistory_result(
18078 List<Commit> success,
18079 CentralDogmaException e)
18080 {
18081 this();
18082 this.success = success;
18083 this.e = e;
18084 }
18085
18086
18087
18088
18089 public getHistory_result(getHistory_result other) {
18090 if (other.isSetSuccess()) {
18091 List<Commit> __this__success = new ArrayList<Commit>(other.success.size());
18092 for (Commit other_element : other.success) {
18093 __this__success.add(new Commit(other_element));
18094 }
18095 this.success = __this__success;
18096 }
18097 if (other.isSetE()) {
18098 this.e = new CentralDogmaException(other.e);
18099 }
18100 }
18101
18102 public getHistory_result deepCopy() {
18103 return new getHistory_result(this);
18104 }
18105
18106 @Override
18107 public void clear() {
18108 this.success = null;
18109 this.e = null;
18110 }
18111
18112 public int getSuccessSize() {
18113 return (this.success == null) ? 0 : this.success.size();
18114 }
18115
18116 public java.util.Iterator<Commit> getSuccessIterator() {
18117 return (this.success == null) ? null : this.success.iterator();
18118 }
18119
18120 public void addToSuccess(Commit elem) {
18121 if (this.success == null) {
18122 this.success = new ArrayList<Commit>();
18123 }
18124 this.success.add(elem);
18125 }
18126
18127 public List<Commit> getSuccess() {
18128 return this.success;
18129 }
18130
18131 public getHistory_result setSuccess(List<Commit> success) {
18132 this.success = success;
18133 return this;
18134 }
18135
18136 public void unsetSuccess() {
18137 this.success = null;
18138 }
18139
18140
18141 public boolean isSetSuccess() {
18142 return this.success != null;
18143 }
18144
18145 public void setSuccessIsSet(boolean value) {
18146 if (!value) {
18147 this.success = null;
18148 }
18149 }
18150
18151 public CentralDogmaException getE() {
18152 return this.e;
18153 }
18154
18155 public getHistory_result setE(CentralDogmaException e) {
18156 this.e = e;
18157 return this;
18158 }
18159
18160 public void unsetE() {
18161 this.e = null;
18162 }
18163
18164
18165 public boolean isSetE() {
18166 return this.e != null;
18167 }
18168
18169 public void setEIsSet(boolean value) {
18170 if (!value) {
18171 this.e = null;
18172 }
18173 }
18174
18175 public void setFieldValue(_Fields field, Object value) {
18176 switch (field) {
18177 case SUCCESS:
18178 if (value == null) {
18179 unsetSuccess();
18180 } else {
18181 setSuccess((List<Commit>)value);
18182 }
18183 break;
18184
18185 case E:
18186 if (value == null) {
18187 unsetE();
18188 } else {
18189 setE((CentralDogmaException)value);
18190 }
18191 break;
18192
18193 }
18194 }
18195
18196 public Object getFieldValue(_Fields field) {
18197 switch (field) {
18198 case SUCCESS:
18199 return getSuccess();
18200
18201 case E:
18202 return getE();
18203
18204 }
18205 throw new IllegalStateException();
18206 }
18207
18208
18209 public boolean isSet(_Fields field) {
18210 if (field == null) {
18211 throw new IllegalArgumentException();
18212 }
18213
18214 switch (field) {
18215 case SUCCESS:
18216 return isSetSuccess();
18217 case E:
18218 return isSetE();
18219 }
18220 throw new IllegalStateException();
18221 }
18222
18223 @Override
18224 public boolean equals(Object that) {
18225 if (that == null)
18226 return false;
18227 if (that instanceof getHistory_result)
18228 return this.equals((getHistory_result)that);
18229 return false;
18230 }
18231
18232 public boolean equals(getHistory_result that) {
18233 if (that == null)
18234 return false;
18235
18236 boolean this_present_success = true && this.isSetSuccess();
18237 boolean that_present_success = true && that.isSetSuccess();
18238 if (this_present_success || that_present_success) {
18239 if (!(this_present_success && that_present_success))
18240 return false;
18241 if (!this.success.equals(that.success))
18242 return false;
18243 }
18244
18245 boolean this_present_e = true && this.isSetE();
18246 boolean that_present_e = true && that.isSetE();
18247 if (this_present_e || that_present_e) {
18248 if (!(this_present_e && that_present_e))
18249 return false;
18250 if (!this.e.equals(that.e))
18251 return false;
18252 }
18253
18254 return true;
18255 }
18256
18257 @Override
18258 public int hashCode() {
18259 List<Object> list = new ArrayList<Object>();
18260
18261 boolean present_success = true && (isSetSuccess());
18262 list.add(present_success);
18263 if (present_success)
18264 list.add(success);
18265
18266 boolean present_e = true && (isSetE());
18267 list.add(present_e);
18268 if (present_e)
18269 list.add(e);
18270
18271 return list.hashCode();
18272 }
18273
18274 @Override
18275 public int compareTo(getHistory_result other) {
18276 if (!getClass().equals(other.getClass())) {
18277 return getClass().getName().compareTo(other.getClass().getName());
18278 }
18279
18280 int lastComparison = 0;
18281
18282 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
18283 if (lastComparison != 0) {
18284 return lastComparison;
18285 }
18286 if (isSetSuccess()) {
18287 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
18288 if (lastComparison != 0) {
18289 return lastComparison;
18290 }
18291 }
18292 lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE());
18293 if (lastComparison != 0) {
18294 return lastComparison;
18295 }
18296 if (isSetE()) {
18297 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e);
18298 if (lastComparison != 0) {
18299 return lastComparison;
18300 }
18301 }
18302 return 0;
18303 }
18304
18305 public _Fields fieldForId(int fieldId) {
18306 return _Fields.findByThriftId(fieldId);
18307 }
18308
18309 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18310 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
18311 }
18312
18313 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18314 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
18315 }
18316
18317 @Override
18318 public String toString() {
18319 StringBuilder sb = new StringBuilder("getHistory_result(");
18320 boolean first = true;
18321
18322 sb.append("success:");
18323 if (this.success == null) {
18324 sb.append("null");
18325 } else {
18326 sb.append(this.success);
18327 }
18328 first = false;
18329 if (!first) sb.append(", ");
18330 sb.append("e:");
18331 if (this.e == null) {
18332 sb.append("null");
18333 } else {
18334 sb.append(this.e);
18335 }
18336 first = false;
18337 sb.append(")");
18338 return sb.toString();
18339 }
18340
18341 public void validate() throws org.apache.thrift.TException {
18342
18343
18344 }
18345
18346 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18347 try {
18348 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18349 } catch (org.apache.thrift.TException te) {
18350 throw new java.io.IOException(te);
18351 }
18352 }
18353
18354 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18355 try {
18356 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18357 } catch (org.apache.thrift.TException te) {
18358 throw new java.io.IOException(te);
18359 }
18360 }
18361
18362 private static class getHistory_resultStandardSchemeFactory implements SchemeFactory {
18363 public getHistory_resultStandardScheme getScheme() {
18364 return new getHistory_resultStandardScheme();
18365 }
18366 }
18367
18368 private static class getHistory_resultStandardScheme extends StandardScheme<getHistory_result> {
18369
18370 public void read(org.apache.thrift.protocol.TProtocol iprot, getHistory_result struct) throws org.apache.thrift.TException {
18371 org.apache.thrift.protocol.TField schemeField;
18372 iprot.readStructBegin();
18373 while (true)
18374 {
18375 schemeField = iprot.readFieldBegin();
18376 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
18377 break;
18378 }
18379 switch (schemeField.id) {
18380 case 0:
18381 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
18382 {
18383 org.apache.thrift.protocol.TList _list120 = iprot.readListBegin();
18384 struct.success = new ArrayList<Commit>(_list120.size);
18385 Commit _elem121;
18386 for (int _i122 = 0; _i122 < _list120.size; ++_i122)
18387 {
18388 _elem121 = new Commit();
18389 _elem121.read(iprot);
18390 struct.success.add(_elem121);
18391 }
18392 iprot.readListEnd();
18393 }
18394 struct.setSuccessIsSet(true);
18395 } else {
18396 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
18397 }
18398 break;
18399 case 1:
18400 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
18401 struct.e = new CentralDogmaException();
18402 struct.e.read(iprot);
18403 struct.setEIsSet(true);
18404 } else {
18405 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
18406 }
18407 break;
18408 default:
18409 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
18410 }
18411 iprot.readFieldEnd();
18412 }
18413 iprot.readStructEnd();
18414
18415
18416 struct.validate();
18417 }
18418
18419 public void write(org.apache.thrift.protocol.TProtocol oprot, getHistory_result struct) throws org.apache.thrift.TException {
18420 struct.validate();
18421
18422 oprot.writeStructBegin(STRUCT_DESC);
18423 if (struct.success != null) {
18424 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
18425 {
18426 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
18427 for (Commit _iter123 : struct.success)
18428 {
18429 _iter123.write(oprot);
18430 }
18431 oprot.writeListEnd();
18432 }
18433 oprot.writeFieldEnd();
18434 }
18435 if (struct.e != null) {
18436 oprot.writeFieldBegin(E_FIELD_DESC);
18437 struct.e.write(oprot);
18438 oprot.writeFieldEnd();
18439 }
18440 oprot.writeFieldStop();
18441 oprot.writeStructEnd();
18442 }
18443
18444 }
18445
18446 private static class getHistory_resultTupleSchemeFactory implements SchemeFactory {
18447 public getHistory_resultTupleScheme getScheme() {
18448 return new getHistory_resultTupleScheme();
18449 }
18450 }
18451
18452 private static class getHistory_resultTupleScheme extends TupleScheme<getHistory_result> {
18453
18454 @Override
18455 public void write(org.apache.thrift.protocol.TProtocol prot, getHistory_result struct) throws org.apache.thrift.TException {
18456 TTupleProtocol oprot = (TTupleProtocol) prot;
18457 BitSet optionals = new BitSet();
18458 if (struct.isSetSuccess()) {
18459 optionals.set(0);
18460 }
18461 if (struct.isSetE()) {
18462 optionals.set(1);
18463 }
18464 oprot.writeBitSet(optionals, 2);
18465 if (struct.isSetSuccess()) {
18466 {
18467 oprot.writeI32(struct.success.size());
18468 for (Commit _iter124 : struct.success)
18469 {
18470 _iter124.write(oprot);
18471 }
18472 }
18473 }
18474 if (struct.isSetE()) {
18475 struct.e.write(oprot);
18476 }
18477 }
18478
18479 @Override
18480 public void read(org.apache.thrift.protocol.TProtocol prot, getHistory_result struct) throws org.apache.thrift.TException {
18481 TTupleProtocol iprot = (TTupleProtocol) prot;
18482 BitSet incoming = iprot.readBitSet(2);
18483 if (incoming.get(0)) {
18484 {
18485 org.apache.thrift.protocol.TList _list125 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
18486 struct.success = new ArrayList<Commit>(_list125.size);
18487 Commit _elem126;
18488 for (int _i127 = 0; _i127 < _list125.size; ++_i127)
18489 {
18490 _elem126 = new Commit();
18491 _elem126.read(iprot);
18492 struct.success.add(_elem126);
18493 }
18494 }
18495 struct.setSuccessIsSet(true);
18496 }
18497 if (incoming.get(1)) {
18498 struct.e = new CentralDogmaException();
18499 struct.e.read(iprot);
18500 struct.setEIsSet(true);
18501 }
18502 }
18503 }
18504
18505 }
18506
18507 public static class getDiffs_args implements org.apache.thrift.TBase<getDiffs_args, getDiffs_args._Fields>, java.io.Serializable, Cloneable, Comparable<getDiffs_args> {
18508 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getDiffs_args");
18509
18510 private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)1);
18511 private static final org.apache.thrift.protocol.TField REPOSITORY_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("repositoryName", org.apache.thrift.protocol.TType.STRING, (short)2);
18512 private static final org.apache.thrift.protocol.TField FROM_REVISION_FIELD_DESC = new org.apache.thrift.protocol.TField("from", org.apache.thrift.protocol.TType.STRUCT, (short)3);
18513 private static final org.apache.thrift.protocol.TField TO_REVISION_FIELD_DESC = new org.apache.thrift.protocol.TField("to", org.apache.thrift.protocol.TType.STRUCT, (short)4);
18514 private static final org.apache.thrift.protocol.TField PATH_PATTERN_FIELD_DESC = new org.apache.thrift.protocol.TField("pathPattern", org.apache.thrift.protocol.TType.STRING, (short)5);
18515
18516 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
18517 static {
18518 schemes.put(StandardScheme.class, new getDiffs_argsStandardSchemeFactory());
18519 schemes.put(TupleScheme.class, new getDiffs_argsTupleSchemeFactory());
18520 }
18521
18522 public String projectName;
18523 public String repositoryName;
18524 public Revision from;
18525 public Revision to;
18526 public String pathPattern;
18527
18528
18529 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18530 PROJECT_NAME((short)1, "projectName"),
18531 REPOSITORY_NAME((short)2, "repositoryName"),
18532 FROM_REVISION((short)3, "from"),
18533 TO_REVISION((short)4, "to"),
18534 PATH_PATTERN((short)5, "pathPattern");
18535
18536 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18537
18538 static {
18539 for (_Fields field : EnumSet.allOf(_Fields.class)) {
18540 byName.put(field.getFieldName(), field);
18541 }
18542 }
18543
18544
18545
18546
18547 public static _Fields findByThriftId(int fieldId) {
18548 switch(fieldId) {
18549 case 1:
18550 return PROJECT_NAME;
18551 case 2:
18552 return REPOSITORY_NAME;
18553 case 3:
18554 return FROM_REVISION;
18555 case 4:
18556 return TO_REVISION;
18557 case 5:
18558 return PATH_PATTERN;
18559 default:
18560 return null;
18561 }
18562 }
18563
18564
18565
18566
18567
18568 public static _Fields findByThriftIdOrThrow(int fieldId) {
18569 _Fields fields = findByThriftId(fieldId);
18570 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18571 return fields;
18572 }
18573
18574
18575
18576
18577 public static _Fields findByName(String name) {
18578 return byName.get(name);
18579 }
18580
18581 private final short _thriftId;
18582 private final String _fieldName;
18583
18584 _Fields(short thriftId, String fieldName) {
18585 _thriftId = thriftId;
18586 _fieldName = fieldName;
18587 }
18588
18589 public short getThriftFieldId() {
18590 return _thriftId;
18591 }
18592
18593 public String getFieldName() {
18594 return _fieldName;
18595 }
18596 }
18597
18598
18599 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18600 static {
18601 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18602 tmpMap.put(_Fields.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", org.apache.thrift.TFieldRequirementType.DEFAULT,
18603 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
18604 tmpMap.put(_Fields.REPOSITORY_NAME, new org.apache.thrift.meta_data.FieldMetaData("repositoryName", org.apache.thrift.TFieldRequirementType.DEFAULT,
18605 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
18606 tmpMap.put(_Fields.FROM_REVISION, new org.apache.thrift.meta_data.FieldMetaData("from", org.apache.thrift.TFieldRequirementType.DEFAULT,
18607 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Revision.class)));
18608 tmpMap.put(_Fields.TO_REVISION, new org.apache.thrift.meta_data.FieldMetaData("to", org.apache.thrift.TFieldRequirementType.DEFAULT,
18609 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Revision.class)));
18610 tmpMap.put(_Fields.PATH_PATTERN, new org.apache.thrift.meta_data.FieldMetaData("pathPattern", org.apache.thrift.TFieldRequirementType.DEFAULT,
18611 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
18612 metaDataMap = Collections.unmodifiableMap(tmpMap);
18613 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getDiffs_args.class, metaDataMap);
18614 }
18615
18616 public getDiffs_args() {
18617 }
18618
18619 public getDiffs_args(
18620 String projectName,
18621 String repositoryName,
18622 Revision from,
18623 Revision to,
18624 String pathPattern)
18625 {
18626 this();
18627 this.projectName = projectName;
18628 this.repositoryName = repositoryName;
18629 this.from = from;
18630 this.to = to;
18631 this.pathPattern = pathPattern;
18632 }
18633
18634
18635
18636
18637 public getDiffs_args(getDiffs_args other) {
18638 if (other.isSetProjectName()) {
18639 this.projectName = other.projectName;
18640 }
18641 if (other.isSetRepositoryName()) {
18642 this.repositoryName = other.repositoryName;
18643 }
18644 if (other.isSetFromRevision()) {
18645 this.from = new Revision(other.from);
18646 }
18647 if (other.isSetToRevision()) {
18648 this.to = new Revision(other.to);
18649 }
18650 if (other.isSetPathPattern()) {
18651 this.pathPattern = other.pathPattern;
18652 }
18653 }
18654
18655 public getDiffs_args deepCopy() {
18656 return new getDiffs_args(this);
18657 }
18658
18659 @Override
18660 public void clear() {
18661 this.projectName = null;
18662 this.repositoryName = null;
18663 this.from = null;
18664 this.to = null;
18665 this.pathPattern = null;
18666 }
18667
18668 public String getProjectName() {
18669 return this.projectName;
18670 }
18671
18672 public getDiffs_args setProjectName(String projectName) {
18673 this.projectName = projectName;
18674 return this;
18675 }
18676
18677 public void unsetProjectName() {
18678 this.projectName = null;
18679 }
18680
18681
18682 public boolean isSetProjectName() {
18683 return this.projectName != null;
18684 }
18685
18686 public void setProjectNameIsSet(boolean value) {
18687 if (!value) {
18688 this.projectName = null;
18689 }
18690 }
18691
18692 public String getRepositoryName() {
18693 return this.repositoryName;
18694 }
18695
18696 public getDiffs_args setRepositoryName(String repositoryName) {
18697 this.repositoryName = repositoryName;
18698 return this;
18699 }
18700
18701 public void unsetRepositoryName() {
18702 this.repositoryName = null;
18703 }
18704
18705
18706 public boolean isSetRepositoryName() {
18707 return this.repositoryName != null;
18708 }
18709
18710 public void setRepositoryNameIsSet(boolean value) {
18711 if (!value) {
18712 this.repositoryName = null;
18713 }
18714 }
18715
18716 public Revision getFromRevision() {
18717 return this.from;
18718 }
18719
18720 public getDiffs_args setFromRevision(Revision from) {
18721 this.from = from;
18722 return this;
18723 }
18724
18725 public void unsetFromRevision() {
18726 this.from = null;
18727 }
18728
18729
18730 public boolean isSetFromRevision() {
18731 return this.from != null;
18732 }
18733
18734 public void setFromRevisionIsSet(boolean value) {
18735 if (!value) {
18736 this.from = null;
18737 }
18738 }
18739
18740 public Revision getToRevision() {
18741 return this.to;
18742 }
18743
18744 public getDiffs_args setToRevision(Revision to) {
18745 this.to = to;
18746 return this;
18747 }
18748
18749 public void unsetToRevision() {
18750 this.to = null;
18751 }
18752
18753
18754 public boolean isSetToRevision() {
18755 return this.to != null;
18756 }
18757
18758 public void setToRevisionIsSet(boolean value) {
18759 if (!value) {
18760 this.to = null;
18761 }
18762 }
18763
18764 public String getPathPattern() {
18765 return this.pathPattern;
18766 }
18767
18768 public getDiffs_args setPathPattern(String pathPattern) {
18769 this.pathPattern = pathPattern;
18770 return this;
18771 }
18772
18773 public void unsetPathPattern() {
18774 this.pathPattern = null;
18775 }
18776
18777
18778 public boolean isSetPathPattern() {
18779 return this.pathPattern != null;
18780 }
18781
18782 public void setPathPatternIsSet(boolean value) {
18783 if (!value) {
18784 this.pathPattern = null;
18785 }
18786 }
18787
18788 public void setFieldValue(_Fields field, Object value) {
18789 switch (field) {
18790 case PROJECT_NAME:
18791 if (value == null) {
18792 unsetProjectName();
18793 } else {
18794 setProjectName((String)value);
18795 }
18796 break;
18797
18798 case REPOSITORY_NAME:
18799 if (value == null) {
18800 unsetRepositoryName();
18801 } else {
18802 setRepositoryName((String)value);
18803 }
18804 break;
18805
18806 case FROM_REVISION:
18807 if (value == null) {
18808 unsetFromRevision();
18809 } else {
18810 setFromRevision((Revision)value);
18811 }
18812 break;
18813
18814 case TO_REVISION:
18815 if (value == null) {
18816 unsetToRevision();
18817 } else {
18818 setToRevision((Revision)value);
18819 }
18820 break;
18821
18822 case PATH_PATTERN:
18823 if (value == null) {
18824 unsetPathPattern();
18825 } else {
18826 setPathPattern((String)value);
18827 }
18828 break;
18829
18830 }
18831 }
18832
18833 public Object getFieldValue(_Fields field) {
18834 switch (field) {
18835 case PROJECT_NAME:
18836 return getProjectName();
18837
18838 case REPOSITORY_NAME:
18839 return getRepositoryName();
18840
18841 case FROM_REVISION:
18842 return getFromRevision();
18843
18844 case TO_REVISION:
18845 return getToRevision();
18846
18847 case PATH_PATTERN:
18848 return getPathPattern();
18849
18850 }
18851 throw new IllegalStateException();
18852 }
18853
18854
18855 public boolean isSet(_Fields field) {
18856 if (field == null) {
18857 throw new IllegalArgumentException();
18858 }
18859
18860 switch (field) {
18861 case PROJECT_NAME:
18862 return isSetProjectName();
18863 case REPOSITORY_NAME:
18864 return isSetRepositoryName();
18865 case FROM_REVISION:
18866 return isSetFromRevision();
18867 case TO_REVISION:
18868 return isSetToRevision();
18869 case PATH_PATTERN:
18870 return isSetPathPattern();
18871 }
18872 throw new IllegalStateException();
18873 }
18874
18875 @Override
18876 public boolean equals(Object that) {
18877 if (that == null)
18878 return false;
18879 if (that instanceof getDiffs_args)
18880 return this.equals((getDiffs_args)that);
18881 return false;
18882 }
18883
18884 public boolean equals(getDiffs_args that) {
18885 if (that == null)
18886 return false;
18887
18888 boolean this_present_projectName = true && this.isSetProjectName();
18889 boolean that_present_projectName = true && that.isSetProjectName();
18890 if (this_present_projectName || that_present_projectName) {
18891 if (!(this_present_projectName && that_present_projectName))
18892 return false;
18893 if (!this.projectName.equals(that.projectName))
18894 return false;
18895 }
18896
18897 boolean this_present_repositoryName = true && this.isSetRepositoryName();
18898 boolean that_present_repositoryName = true && that.isSetRepositoryName();
18899 if (this_present_repositoryName || that_present_repositoryName) {
18900 if (!(this_present_repositoryName && that_present_repositoryName))
18901 return false;
18902 if (!this.repositoryName.equals(that.repositoryName))
18903 return false;
18904 }
18905
18906 boolean this_present_from = true && this.isSetFromRevision();
18907 boolean that_present_from = true && that.isSetFromRevision();
18908 if (this_present_from || that_present_from) {
18909 if (!(this_present_from && that_present_from))
18910 return false;
18911 if (!this.from.equals(that.from))
18912 return false;
18913 }
18914
18915 boolean this_present_to = true && this.isSetToRevision();
18916 boolean that_present_to = true && that.isSetToRevision();
18917 if (this_present_to || that_present_to) {
18918 if (!(this_present_to && that_present_to))
18919 return false;
18920 if (!this.to.equals(that.to))
18921 return false;
18922 }
18923
18924 boolean this_present_pathPattern = true && this.isSetPathPattern();
18925 boolean that_present_pathPattern = true && that.isSetPathPattern();
18926 if (this_present_pathPattern || that_present_pathPattern) {
18927 if (!(this_present_pathPattern && that_present_pathPattern))
18928 return false;
18929 if (!this.pathPattern.equals(that.pathPattern))
18930 return false;
18931 }
18932
18933 return true;
18934 }
18935
18936 @Override
18937 public int hashCode() {
18938 List<Object> list = new ArrayList<Object>();
18939
18940 boolean present_projectName = true && (isSetProjectName());
18941 list.add(present_projectName);
18942 if (present_projectName)
18943 list.add(projectName);
18944
18945 boolean present_repositoryName = true && (isSetRepositoryName());
18946 list.add(present_repositoryName);
18947 if (present_repositoryName)
18948 list.add(repositoryName);
18949
18950 boolean present_from = true && (isSetFromRevision());
18951 list.add(present_from);
18952 if (present_from)
18953 list.add(from);
18954
18955 boolean present_to = true && (isSetToRevision());
18956 list.add(present_to);
18957 if (present_to)
18958 list.add(to);
18959
18960 boolean present_pathPattern = true && (isSetPathPattern());
18961 list.add(present_pathPattern);
18962 if (present_pathPattern)
18963 list.add(pathPattern);
18964
18965 return list.hashCode();
18966 }
18967
18968 @Override
18969 public int compareTo(getDiffs_args other) {
18970 if (!getClass().equals(other.getClass())) {
18971 return getClass().getName().compareTo(other.getClass().getName());
18972 }
18973
18974 int lastComparison = 0;
18975
18976 lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName());
18977 if (lastComparison != 0) {
18978 return lastComparison;
18979 }
18980 if (isSetProjectName()) {
18981 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName);
18982 if (lastComparison != 0) {
18983 return lastComparison;
18984 }
18985 }
18986 lastComparison = Boolean.valueOf(isSetRepositoryName()).compareTo(other.isSetRepositoryName());
18987 if (lastComparison != 0) {
18988 return lastComparison;
18989 }
18990 if (isSetRepositoryName()) {
18991 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.repositoryName, other.repositoryName);
18992 if (lastComparison != 0) {
18993 return lastComparison;
18994 }
18995 }
18996 lastComparison = Boolean.valueOf(isSetFromRevision()).compareTo(other.isSetFromRevision());
18997 if (lastComparison != 0) {
18998 return lastComparison;
18999 }
19000 if (isSetFromRevision()) {
19001 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.from, other.from);
19002 if (lastComparison != 0) {
19003 return lastComparison;
19004 }
19005 }
19006 lastComparison = Boolean.valueOf(isSetToRevision()).compareTo(other.isSetToRevision());
19007 if (lastComparison != 0) {
19008 return lastComparison;
19009 }
19010 if (isSetToRevision()) {
19011 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.to, other.to);
19012 if (lastComparison != 0) {
19013 return lastComparison;
19014 }
19015 }
19016 lastComparison = Boolean.valueOf(isSetPathPattern()).compareTo(other.isSetPathPattern());
19017 if (lastComparison != 0) {
19018 return lastComparison;
19019 }
19020 if (isSetPathPattern()) {
19021 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pathPattern, other.pathPattern);
19022 if (lastComparison != 0) {
19023 return lastComparison;
19024 }
19025 }
19026 return 0;
19027 }
19028
19029 public _Fields fieldForId(int fieldId) {
19030 return _Fields.findByThriftId(fieldId);
19031 }
19032
19033 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19034 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
19035 }
19036
19037 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19038 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
19039 }
19040
19041 @Override
19042 public String toString() {
19043 StringBuilder sb = new StringBuilder("getDiffs_args(");
19044 boolean first = true;
19045
19046 sb.append("projectName:");
19047 if (this.projectName == null) {
19048 sb.append("null");
19049 } else {
19050 sb.append(this.projectName);
19051 }
19052 first = false;
19053 if (!first) sb.append(", ");
19054 sb.append("repositoryName:");
19055 if (this.repositoryName == null) {
19056 sb.append("null");
19057 } else {
19058 sb.append(this.repositoryName);
19059 }
19060 first = false;
19061 if (!first) sb.append(", ");
19062 sb.append("from:");
19063 if (this.from == null) {
19064 sb.append("null");
19065 } else {
19066 sb.append(this.from);
19067 }
19068 first = false;
19069 if (!first) sb.append(", ");
19070 sb.append("to:");
19071 if (this.to == null) {
19072 sb.append("null");
19073 } else {
19074 sb.append(this.to);
19075 }
19076 first = false;
19077 if (!first) sb.append(", ");
19078 sb.append("pathPattern:");
19079 if (this.pathPattern == null) {
19080 sb.append("null");
19081 } else {
19082 sb.append(this.pathPattern);
19083 }
19084 first = false;
19085 sb.append(")");
19086 return sb.toString();
19087 }
19088
19089 public void validate() throws org.apache.thrift.TException {
19090
19091
19092 if (from != null) {
19093 from.validate();
19094 }
19095 if (to != null) {
19096 to.validate();
19097 }
19098 }
19099
19100 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19101 try {
19102 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19103 } catch (org.apache.thrift.TException te) {
19104 throw new java.io.IOException(te);
19105 }
19106 }
19107
19108 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19109 try {
19110 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19111 } catch (org.apache.thrift.TException te) {
19112 throw new java.io.IOException(te);
19113 }
19114 }
19115
19116 private static class getDiffs_argsStandardSchemeFactory implements SchemeFactory {
19117 public getDiffs_argsStandardScheme getScheme() {
19118 return new getDiffs_argsStandardScheme();
19119 }
19120 }
19121
19122 private static class getDiffs_argsStandardScheme extends StandardScheme<getDiffs_args> {
19123
19124 public void read(org.apache.thrift.protocol.TProtocol iprot, getDiffs_args struct) throws org.apache.thrift.TException {
19125 org.apache.thrift.protocol.TField schemeField;
19126 iprot.readStructBegin();
19127 while (true)
19128 {
19129 schemeField = iprot.readFieldBegin();
19130 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
19131 break;
19132 }
19133 switch (schemeField.id) {
19134 case 1:
19135 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
19136 struct.projectName = iprot.readString();
19137 struct.setProjectNameIsSet(true);
19138 } else {
19139 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
19140 }
19141 break;
19142 case 2:
19143 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
19144 struct.repositoryName = iprot.readString();
19145 struct.setRepositoryNameIsSet(true);
19146 } else {
19147 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
19148 }
19149 break;
19150 case 3:
19151 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
19152 struct.from = new Revision();
19153 struct.from.read(iprot);
19154 struct.setFromRevisionIsSet(true);
19155 } else {
19156 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
19157 }
19158 break;
19159 case 4:
19160 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
19161 struct.to = new Revision();
19162 struct.to.read(iprot);
19163 struct.setToRevisionIsSet(true);
19164 } else {
19165 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
19166 }
19167 break;
19168 case 5:
19169 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
19170 struct.pathPattern = iprot.readString();
19171 struct.setPathPatternIsSet(true);
19172 } else {
19173 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
19174 }
19175 break;
19176 default:
19177 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
19178 }
19179 iprot.readFieldEnd();
19180 }
19181 iprot.readStructEnd();
19182
19183
19184 struct.validate();
19185 }
19186
19187 public void write(org.apache.thrift.protocol.TProtocol oprot, getDiffs_args struct) throws org.apache.thrift.TException {
19188 struct.validate();
19189
19190 oprot.writeStructBegin(STRUCT_DESC);
19191 if (struct.projectName != null) {
19192 oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC);
19193 oprot.writeString(struct.projectName);
19194 oprot.writeFieldEnd();
19195 }
19196 if (struct.repositoryName != null) {
19197 oprot.writeFieldBegin(REPOSITORY_NAME_FIELD_DESC);
19198 oprot.writeString(struct.repositoryName);
19199 oprot.writeFieldEnd();
19200 }
19201 if (struct.from != null) {
19202 oprot.writeFieldBegin(FROM_REVISION_FIELD_DESC);
19203 struct.from.write(oprot);
19204 oprot.writeFieldEnd();
19205 }
19206 if (struct.to != null) {
19207 oprot.writeFieldBegin(TO_REVISION_FIELD_DESC);
19208 struct.to.write(oprot);
19209 oprot.writeFieldEnd();
19210 }
19211 if (struct.pathPattern != null) {
19212 oprot.writeFieldBegin(PATH_PATTERN_FIELD_DESC);
19213 oprot.writeString(struct.pathPattern);
19214 oprot.writeFieldEnd();
19215 }
19216 oprot.writeFieldStop();
19217 oprot.writeStructEnd();
19218 }
19219
19220 }
19221
19222 private static class getDiffs_argsTupleSchemeFactory implements SchemeFactory {
19223 public getDiffs_argsTupleScheme getScheme() {
19224 return new getDiffs_argsTupleScheme();
19225 }
19226 }
19227
19228 private static class getDiffs_argsTupleScheme extends TupleScheme<getDiffs_args> {
19229
19230 @Override
19231 public void write(org.apache.thrift.protocol.TProtocol prot, getDiffs_args struct) throws org.apache.thrift.TException {
19232 TTupleProtocol oprot = (TTupleProtocol) prot;
19233 BitSet optionals = new BitSet();
19234 if (struct.isSetProjectName()) {
19235 optionals.set(0);
19236 }
19237 if (struct.isSetRepositoryName()) {
19238 optionals.set(1);
19239 }
19240 if (struct.isSetFromRevision()) {
19241 optionals.set(2);
19242 }
19243 if (struct.isSetToRevision()) {
19244 optionals.set(3);
19245 }
19246 if (struct.isSetPathPattern()) {
19247 optionals.set(4);
19248 }
19249 oprot.writeBitSet(optionals, 5);
19250 if (struct.isSetProjectName()) {
19251 oprot.writeString(struct.projectName);
19252 }
19253 if (struct.isSetRepositoryName()) {
19254 oprot.writeString(struct.repositoryName);
19255 }
19256 if (struct.isSetFromRevision()) {
19257 struct.from.write(oprot);
19258 }
19259 if (struct.isSetToRevision()) {
19260 struct.to.write(oprot);
19261 }
19262 if (struct.isSetPathPattern()) {
19263 oprot.writeString(struct.pathPattern);
19264 }
19265 }
19266
19267 @Override
19268 public void read(org.apache.thrift.protocol.TProtocol prot, getDiffs_args struct) throws org.apache.thrift.TException {
19269 TTupleProtocol iprot = (TTupleProtocol) prot;
19270 BitSet incoming = iprot.readBitSet(5);
19271 if (incoming.get(0)) {
19272 struct.projectName = iprot.readString();
19273 struct.setProjectNameIsSet(true);
19274 }
19275 if (incoming.get(1)) {
19276 struct.repositoryName = iprot.readString();
19277 struct.setRepositoryNameIsSet(true);
19278 }
19279 if (incoming.get(2)) {
19280 struct.from = new Revision();
19281 struct.from.read(iprot);
19282 struct.setFromRevisionIsSet(true);
19283 }
19284 if (incoming.get(3)) {
19285 struct.to = new Revision();
19286 struct.to.read(iprot);
19287 struct.setToRevisionIsSet(true);
19288 }
19289 if (incoming.get(4)) {
19290 struct.pathPattern = iprot.readString();
19291 struct.setPathPatternIsSet(true);
19292 }
19293 }
19294 }
19295
19296 }
19297
19298 public static class getDiffs_result implements org.apache.thrift.TBase<getDiffs_result, getDiffs_result._Fields>, java.io.Serializable, Cloneable, Comparable<getDiffs_result> {
19299 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getDiffs_result");
19300
19301 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
19302 private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
19303
19304 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
19305 static {
19306 schemes.put(StandardScheme.class, new getDiffs_resultStandardSchemeFactory());
19307 schemes.put(TupleScheme.class, new getDiffs_resultTupleSchemeFactory());
19308 }
19309
19310 public List<Change> success;
19311 public CentralDogmaException e;
19312
19313
19314 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19315 SUCCESS((short)0, "success"),
19316 E((short)1, "e");
19317
19318 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19319
19320 static {
19321 for (_Fields field : EnumSet.allOf(_Fields.class)) {
19322 byName.put(field.getFieldName(), field);
19323 }
19324 }
19325
19326
19327
19328
19329 public static _Fields findByThriftId(int fieldId) {
19330 switch(fieldId) {
19331 case 0:
19332 return SUCCESS;
19333 case 1:
19334 return E;
19335 default:
19336 return null;
19337 }
19338 }
19339
19340
19341
19342
19343
19344 public static _Fields findByThriftIdOrThrow(int fieldId) {
19345 _Fields fields = findByThriftId(fieldId);
19346 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19347 return fields;
19348 }
19349
19350
19351
19352
19353 public static _Fields findByName(String name) {
19354 return byName.get(name);
19355 }
19356
19357 private final short _thriftId;
19358 private final String _fieldName;
19359
19360 _Fields(short thriftId, String fieldName) {
19361 _thriftId = thriftId;
19362 _fieldName = fieldName;
19363 }
19364
19365 public short getThriftFieldId() {
19366 return _thriftId;
19367 }
19368
19369 public String getFieldName() {
19370 return _fieldName;
19371 }
19372 }
19373
19374
19375 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19376 static {
19377 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19378 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
19379 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
19380 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Change.class))));
19381 tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
19382 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
19383 metaDataMap = Collections.unmodifiableMap(tmpMap);
19384 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getDiffs_result.class, metaDataMap);
19385 }
19386
19387 public getDiffs_result() {
19388 }
19389
19390 public getDiffs_result(
19391 List<Change> success,
19392 CentralDogmaException e)
19393 {
19394 this();
19395 this.success = success;
19396 this.e = e;
19397 }
19398
19399
19400
19401
19402 public getDiffs_result(getDiffs_result other) {
19403 if (other.isSetSuccess()) {
19404 List<Change> __this__success = new ArrayList<Change>(other.success.size());
19405 for (Change other_element : other.success) {
19406 __this__success.add(new Change(other_element));
19407 }
19408 this.success = __this__success;
19409 }
19410 if (other.isSetE()) {
19411 this.e = new CentralDogmaException(other.e);
19412 }
19413 }
19414
19415 public getDiffs_result deepCopy() {
19416 return new getDiffs_result(this);
19417 }
19418
19419 @Override
19420 public void clear() {
19421 this.success = null;
19422 this.e = null;
19423 }
19424
19425 public int getSuccessSize() {
19426 return (this.success == null) ? 0 : this.success.size();
19427 }
19428
19429 public java.util.Iterator<Change> getSuccessIterator() {
19430 return (this.success == null) ? null : this.success.iterator();
19431 }
19432
19433 public void addToSuccess(Change elem) {
19434 if (this.success == null) {
19435 this.success = new ArrayList<Change>();
19436 }
19437 this.success.add(elem);
19438 }
19439
19440 public List<Change> getSuccess() {
19441 return this.success;
19442 }
19443
19444 public getDiffs_result setSuccess(List<Change> success) {
19445 this.success = success;
19446 return this;
19447 }
19448
19449 public void unsetSuccess() {
19450 this.success = null;
19451 }
19452
19453
19454 public boolean isSetSuccess() {
19455 return this.success != null;
19456 }
19457
19458 public void setSuccessIsSet(boolean value) {
19459 if (!value) {
19460 this.success = null;
19461 }
19462 }
19463
19464 public CentralDogmaException getE() {
19465 return this.e;
19466 }
19467
19468 public getDiffs_result setE(CentralDogmaException e) {
19469 this.e = e;
19470 return this;
19471 }
19472
19473 public void unsetE() {
19474 this.e = null;
19475 }
19476
19477
19478 public boolean isSetE() {
19479 return this.e != null;
19480 }
19481
19482 public void setEIsSet(boolean value) {
19483 if (!value) {
19484 this.e = null;
19485 }
19486 }
19487
19488 public void setFieldValue(_Fields field, Object value) {
19489 switch (field) {
19490 case SUCCESS:
19491 if (value == null) {
19492 unsetSuccess();
19493 } else {
19494 setSuccess((List<Change>)value);
19495 }
19496 break;
19497
19498 case E:
19499 if (value == null) {
19500 unsetE();
19501 } else {
19502 setE((CentralDogmaException)value);
19503 }
19504 break;
19505
19506 }
19507 }
19508
19509 public Object getFieldValue(_Fields field) {
19510 switch (field) {
19511 case SUCCESS:
19512 return getSuccess();
19513
19514 case E:
19515 return getE();
19516
19517 }
19518 throw new IllegalStateException();
19519 }
19520
19521
19522 public boolean isSet(_Fields field) {
19523 if (field == null) {
19524 throw new IllegalArgumentException();
19525 }
19526
19527 switch (field) {
19528 case SUCCESS:
19529 return isSetSuccess();
19530 case E:
19531 return isSetE();
19532 }
19533 throw new IllegalStateException();
19534 }
19535
19536 @Override
19537 public boolean equals(Object that) {
19538 if (that == null)
19539 return false;
19540 if (that instanceof getDiffs_result)
19541 return this.equals((getDiffs_result)that);
19542 return false;
19543 }
19544
19545 public boolean equals(getDiffs_result that) {
19546 if (that == null)
19547 return false;
19548
19549 boolean this_present_success = true && this.isSetSuccess();
19550 boolean that_present_success = true && that.isSetSuccess();
19551 if (this_present_success || that_present_success) {
19552 if (!(this_present_success && that_present_success))
19553 return false;
19554 if (!this.success.equals(that.success))
19555 return false;
19556 }
19557
19558 boolean this_present_e = true && this.isSetE();
19559 boolean that_present_e = true && that.isSetE();
19560 if (this_present_e || that_present_e) {
19561 if (!(this_present_e && that_present_e))
19562 return false;
19563 if (!this.e.equals(that.e))
19564 return false;
19565 }
19566
19567 return true;
19568 }
19569
19570 @Override
19571 public int hashCode() {
19572 List<Object> list = new ArrayList<Object>();
19573
19574 boolean present_success = true && (isSetSuccess());
19575 list.add(present_success);
19576 if (present_success)
19577 list.add(success);
19578
19579 boolean present_e = true && (isSetE());
19580 list.add(present_e);
19581 if (present_e)
19582 list.add(e);
19583
19584 return list.hashCode();
19585 }
19586
19587 @Override
19588 public int compareTo(getDiffs_result other) {
19589 if (!getClass().equals(other.getClass())) {
19590 return getClass().getName().compareTo(other.getClass().getName());
19591 }
19592
19593 int lastComparison = 0;
19594
19595 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
19596 if (lastComparison != 0) {
19597 return lastComparison;
19598 }
19599 if (isSetSuccess()) {
19600 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
19601 if (lastComparison != 0) {
19602 return lastComparison;
19603 }
19604 }
19605 lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE());
19606 if (lastComparison != 0) {
19607 return lastComparison;
19608 }
19609 if (isSetE()) {
19610 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e);
19611 if (lastComparison != 0) {
19612 return lastComparison;
19613 }
19614 }
19615 return 0;
19616 }
19617
19618 public _Fields fieldForId(int fieldId) {
19619 return _Fields.findByThriftId(fieldId);
19620 }
19621
19622 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19623 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
19624 }
19625
19626 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19627 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
19628 }
19629
19630 @Override
19631 public String toString() {
19632 StringBuilder sb = new StringBuilder("getDiffs_result(");
19633 boolean first = true;
19634
19635 sb.append("success:");
19636 if (this.success == null) {
19637 sb.append("null");
19638 } else {
19639 sb.append(this.success);
19640 }
19641 first = false;
19642 if (!first) sb.append(", ");
19643 sb.append("e:");
19644 if (this.e == null) {
19645 sb.append("null");
19646 } else {
19647 sb.append(this.e);
19648 }
19649 first = false;
19650 sb.append(")");
19651 return sb.toString();
19652 }
19653
19654 public void validate() throws org.apache.thrift.TException {
19655
19656
19657 }
19658
19659 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19660 try {
19661 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19662 } catch (org.apache.thrift.TException te) {
19663 throw new java.io.IOException(te);
19664 }
19665 }
19666
19667 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19668 try {
19669 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19670 } catch (org.apache.thrift.TException te) {
19671 throw new java.io.IOException(te);
19672 }
19673 }
19674
19675 private static class getDiffs_resultStandardSchemeFactory implements SchemeFactory {
19676 public getDiffs_resultStandardScheme getScheme() {
19677 return new getDiffs_resultStandardScheme();
19678 }
19679 }
19680
19681 private static class getDiffs_resultStandardScheme extends StandardScheme<getDiffs_result> {
19682
19683 public void read(org.apache.thrift.protocol.TProtocol iprot, getDiffs_result struct) throws org.apache.thrift.TException {
19684 org.apache.thrift.protocol.TField schemeField;
19685 iprot.readStructBegin();
19686 while (true)
19687 {
19688 schemeField = iprot.readFieldBegin();
19689 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
19690 break;
19691 }
19692 switch (schemeField.id) {
19693 case 0:
19694 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
19695 {
19696 org.apache.thrift.protocol.TList _list128 = iprot.readListBegin();
19697 struct.success = new ArrayList<Change>(_list128.size);
19698 Change _elem129;
19699 for (int _i130 = 0; _i130 < _list128.size; ++_i130)
19700 {
19701 _elem129 = new Change();
19702 _elem129.read(iprot);
19703 struct.success.add(_elem129);
19704 }
19705 iprot.readListEnd();
19706 }
19707 struct.setSuccessIsSet(true);
19708 } else {
19709 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
19710 }
19711 break;
19712 case 1:
19713 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
19714 struct.e = new CentralDogmaException();
19715 struct.e.read(iprot);
19716 struct.setEIsSet(true);
19717 } else {
19718 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
19719 }
19720 break;
19721 default:
19722 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
19723 }
19724 iprot.readFieldEnd();
19725 }
19726 iprot.readStructEnd();
19727
19728
19729 struct.validate();
19730 }
19731
19732 public void write(org.apache.thrift.protocol.TProtocol oprot, getDiffs_result struct) throws org.apache.thrift.TException {
19733 struct.validate();
19734
19735 oprot.writeStructBegin(STRUCT_DESC);
19736 if (struct.success != null) {
19737 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
19738 {
19739 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
19740 for (Change _iter131 : struct.success)
19741 {
19742 _iter131.write(oprot);
19743 }
19744 oprot.writeListEnd();
19745 }
19746 oprot.writeFieldEnd();
19747 }
19748 if (struct.e != null) {
19749 oprot.writeFieldBegin(E_FIELD_DESC);
19750 struct.e.write(oprot);
19751 oprot.writeFieldEnd();
19752 }
19753 oprot.writeFieldStop();
19754 oprot.writeStructEnd();
19755 }
19756
19757 }
19758
19759 private static class getDiffs_resultTupleSchemeFactory implements SchemeFactory {
19760 public getDiffs_resultTupleScheme getScheme() {
19761 return new getDiffs_resultTupleScheme();
19762 }
19763 }
19764
19765 private static class getDiffs_resultTupleScheme extends TupleScheme<getDiffs_result> {
19766
19767 @Override
19768 public void write(org.apache.thrift.protocol.TProtocol prot, getDiffs_result struct) throws org.apache.thrift.TException {
19769 TTupleProtocol oprot = (TTupleProtocol) prot;
19770 BitSet optionals = new BitSet();
19771 if (struct.isSetSuccess()) {
19772 optionals.set(0);
19773 }
19774 if (struct.isSetE()) {
19775 optionals.set(1);
19776 }
19777 oprot.writeBitSet(optionals, 2);
19778 if (struct.isSetSuccess()) {
19779 {
19780 oprot.writeI32(struct.success.size());
19781 for (Change _iter132 : struct.success)
19782 {
19783 _iter132.write(oprot);
19784 }
19785 }
19786 }
19787 if (struct.isSetE()) {
19788 struct.e.write(oprot);
19789 }
19790 }
19791
19792 @Override
19793 public void read(org.apache.thrift.protocol.TProtocol prot, getDiffs_result struct) throws org.apache.thrift.TException {
19794 TTupleProtocol iprot = (TTupleProtocol) prot;
19795 BitSet incoming = iprot.readBitSet(2);
19796 if (incoming.get(0)) {
19797 {
19798 org.apache.thrift.protocol.TList _list133 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
19799 struct.success = new ArrayList<Change>(_list133.size);
19800 Change _elem134;
19801 for (int _i135 = 0; _i135 < _list133.size; ++_i135)
19802 {
19803 _elem134 = new Change();
19804 _elem134.read(iprot);
19805 struct.success.add(_elem134);
19806 }
19807 }
19808 struct.setSuccessIsSet(true);
19809 }
19810 if (incoming.get(1)) {
19811 struct.e = new CentralDogmaException();
19812 struct.e.read(iprot);
19813 struct.setEIsSet(true);
19814 }
19815 }
19816 }
19817
19818 }
19819
19820 public static class getPreviewDiffs_args implements org.apache.thrift.TBase<getPreviewDiffs_args, getPreviewDiffs_args._Fields>, java.io.Serializable, Cloneable, Comparable<getPreviewDiffs_args> {
19821 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPreviewDiffs_args");
19822
19823 private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)1);
19824 private static final org.apache.thrift.protocol.TField REPOSITORY_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("repositoryName", org.apache.thrift.protocol.TType.STRING, (short)2);
19825 private static final org.apache.thrift.protocol.TField BASE_REVISION_FIELD_DESC = new org.apache.thrift.protocol.TField("baseRevision", org.apache.thrift.protocol.TType.STRUCT, (short)3);
19826 private static final org.apache.thrift.protocol.TField CHANGES_FIELD_DESC = new org.apache.thrift.protocol.TField("changes", org.apache.thrift.protocol.TType.LIST, (short)4);
19827
19828 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
19829 static {
19830 schemes.put(StandardScheme.class, new getPreviewDiffs_argsStandardSchemeFactory());
19831 schemes.put(TupleScheme.class, new getPreviewDiffs_argsTupleSchemeFactory());
19832 }
19833
19834 public String projectName;
19835 public String repositoryName;
19836 public Revision baseRevision;
19837 public List<Change> changes;
19838
19839
19840 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19841 PROJECT_NAME((short)1, "projectName"),
19842 REPOSITORY_NAME((short)2, "repositoryName"),
19843 BASE_REVISION((short)3, "baseRevision"),
19844 CHANGES((short)4, "changes");
19845
19846 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19847
19848 static {
19849 for (_Fields field : EnumSet.allOf(_Fields.class)) {
19850 byName.put(field.getFieldName(), field);
19851 }
19852 }
19853
19854
19855
19856
19857 public static _Fields findByThriftId(int fieldId) {
19858 switch(fieldId) {
19859 case 1:
19860 return PROJECT_NAME;
19861 case 2:
19862 return REPOSITORY_NAME;
19863 case 3:
19864 return BASE_REVISION;
19865 case 4:
19866 return CHANGES;
19867 default:
19868 return null;
19869 }
19870 }
19871
19872
19873
19874
19875
19876 public static _Fields findByThriftIdOrThrow(int fieldId) {
19877 _Fields fields = findByThriftId(fieldId);
19878 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19879 return fields;
19880 }
19881
19882
19883
19884
19885 public static _Fields findByName(String name) {
19886 return byName.get(name);
19887 }
19888
19889 private final short _thriftId;
19890 private final String _fieldName;
19891
19892 _Fields(short thriftId, String fieldName) {
19893 _thriftId = thriftId;
19894 _fieldName = fieldName;
19895 }
19896
19897 public short getThriftFieldId() {
19898 return _thriftId;
19899 }
19900
19901 public String getFieldName() {
19902 return _fieldName;
19903 }
19904 }
19905
19906
19907 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19908 static {
19909 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19910 tmpMap.put(_Fields.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", org.apache.thrift.TFieldRequirementType.DEFAULT,
19911 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
19912 tmpMap.put(_Fields.REPOSITORY_NAME, new org.apache.thrift.meta_data.FieldMetaData("repositoryName", org.apache.thrift.TFieldRequirementType.DEFAULT,
19913 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
19914 tmpMap.put(_Fields.BASE_REVISION, new org.apache.thrift.meta_data.FieldMetaData("baseRevision", org.apache.thrift.TFieldRequirementType.DEFAULT,
19915 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Revision.class)));
19916 tmpMap.put(_Fields.CHANGES, new org.apache.thrift.meta_data.FieldMetaData("changes", org.apache.thrift.TFieldRequirementType.DEFAULT,
19917 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
19918 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Change.class))));
19919 metaDataMap = Collections.unmodifiableMap(tmpMap);
19920 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPreviewDiffs_args.class, metaDataMap);
19921 }
19922
19923 public getPreviewDiffs_args() {
19924 }
19925
19926 public getPreviewDiffs_args(
19927 String projectName,
19928 String repositoryName,
19929 Revision baseRevision,
19930 List<Change> changes)
19931 {
19932 this();
19933 this.projectName = projectName;
19934 this.repositoryName = repositoryName;
19935 this.baseRevision = baseRevision;
19936 this.changes = changes;
19937 }
19938
19939
19940
19941
19942 public getPreviewDiffs_args(getPreviewDiffs_args other) {
19943 if (other.isSetProjectName()) {
19944 this.projectName = other.projectName;
19945 }
19946 if (other.isSetRepositoryName()) {
19947 this.repositoryName = other.repositoryName;
19948 }
19949 if (other.isSetBaseRevision()) {
19950 this.baseRevision = new Revision(other.baseRevision);
19951 }
19952 if (other.isSetChanges()) {
19953 List<Change> __this__changes = new ArrayList<Change>(other.changes.size());
19954 for (Change other_element : other.changes) {
19955 __this__changes.add(new Change(other_element));
19956 }
19957 this.changes = __this__changes;
19958 }
19959 }
19960
19961 public getPreviewDiffs_args deepCopy() {
19962 return new getPreviewDiffs_args(this);
19963 }
19964
19965 @Override
19966 public void clear() {
19967 this.projectName = null;
19968 this.repositoryName = null;
19969 this.baseRevision = null;
19970 this.changes = null;
19971 }
19972
19973 public String getProjectName() {
19974 return this.projectName;
19975 }
19976
19977 public getPreviewDiffs_args setProjectName(String projectName) {
19978 this.projectName = projectName;
19979 return this;
19980 }
19981
19982 public void unsetProjectName() {
19983 this.projectName = null;
19984 }
19985
19986
19987 public boolean isSetProjectName() {
19988 return this.projectName != null;
19989 }
19990
19991 public void setProjectNameIsSet(boolean value) {
19992 if (!value) {
19993 this.projectName = null;
19994 }
19995 }
19996
19997 public String getRepositoryName() {
19998 return this.repositoryName;
19999 }
20000
20001 public getPreviewDiffs_args setRepositoryName(String repositoryName) {
20002 this.repositoryName = repositoryName;
20003 return this;
20004 }
20005
20006 public void unsetRepositoryName() {
20007 this.repositoryName = null;
20008 }
20009
20010
20011 public boolean isSetRepositoryName() {
20012 return this.repositoryName != null;
20013 }
20014
20015 public void setRepositoryNameIsSet(boolean value) {
20016 if (!value) {
20017 this.repositoryName = null;
20018 }
20019 }
20020
20021 public Revision getBaseRevision() {
20022 return this.baseRevision;
20023 }
20024
20025 public getPreviewDiffs_args setBaseRevision(Revision baseRevision) {
20026 this.baseRevision = baseRevision;
20027 return this;
20028 }
20029
20030 public void unsetBaseRevision() {
20031 this.baseRevision = null;
20032 }
20033
20034
20035 public boolean isSetBaseRevision() {
20036 return this.baseRevision != null;
20037 }
20038
20039 public void setBaseRevisionIsSet(boolean value) {
20040 if (!value) {
20041 this.baseRevision = null;
20042 }
20043 }
20044
20045 public int getChangesSize() {
20046 return (this.changes == null) ? 0 : this.changes.size();
20047 }
20048
20049 public java.util.Iterator<Change> getChangesIterator() {
20050 return (this.changes == null) ? null : this.changes.iterator();
20051 }
20052
20053 public void addToChanges(Change elem) {
20054 if (this.changes == null) {
20055 this.changes = new ArrayList<Change>();
20056 }
20057 this.changes.add(elem);
20058 }
20059
20060 public List<Change> getChanges() {
20061 return this.changes;
20062 }
20063
20064 public getPreviewDiffs_args setChanges(List<Change> changes) {
20065 this.changes = changes;
20066 return this;
20067 }
20068
20069 public void unsetChanges() {
20070 this.changes = null;
20071 }
20072
20073
20074 public boolean isSetChanges() {
20075 return this.changes != null;
20076 }
20077
20078 public void setChangesIsSet(boolean value) {
20079 if (!value) {
20080 this.changes = null;
20081 }
20082 }
20083
20084 public void setFieldValue(_Fields field, Object value) {
20085 switch (field) {
20086 case PROJECT_NAME:
20087 if (value == null) {
20088 unsetProjectName();
20089 } else {
20090 setProjectName((String)value);
20091 }
20092 break;
20093
20094 case REPOSITORY_NAME:
20095 if (value == null) {
20096 unsetRepositoryName();
20097 } else {
20098 setRepositoryName((String)value);
20099 }
20100 break;
20101
20102 case BASE_REVISION:
20103 if (value == null) {
20104 unsetBaseRevision();
20105 } else {
20106 setBaseRevision((Revision)value);
20107 }
20108 break;
20109
20110 case CHANGES:
20111 if (value == null) {
20112 unsetChanges();
20113 } else {
20114 setChanges((List<Change>)value);
20115 }
20116 break;
20117
20118 }
20119 }
20120
20121 public Object getFieldValue(_Fields field) {
20122 switch (field) {
20123 case PROJECT_NAME:
20124 return getProjectName();
20125
20126 case REPOSITORY_NAME:
20127 return getRepositoryName();
20128
20129 case BASE_REVISION:
20130 return getBaseRevision();
20131
20132 case CHANGES:
20133 return getChanges();
20134
20135 }
20136 throw new IllegalStateException();
20137 }
20138
20139
20140 public boolean isSet(_Fields field) {
20141 if (field == null) {
20142 throw new IllegalArgumentException();
20143 }
20144
20145 switch (field) {
20146 case PROJECT_NAME:
20147 return isSetProjectName();
20148 case REPOSITORY_NAME:
20149 return isSetRepositoryName();
20150 case BASE_REVISION:
20151 return isSetBaseRevision();
20152 case CHANGES:
20153 return isSetChanges();
20154 }
20155 throw new IllegalStateException();
20156 }
20157
20158 @Override
20159 public boolean equals(Object that) {
20160 if (that == null)
20161 return false;
20162 if (that instanceof getPreviewDiffs_args)
20163 return this.equals((getPreviewDiffs_args)that);
20164 return false;
20165 }
20166
20167 public boolean equals(getPreviewDiffs_args that) {
20168 if (that == null)
20169 return false;
20170
20171 boolean this_present_projectName = true && this.isSetProjectName();
20172 boolean that_present_projectName = true && that.isSetProjectName();
20173 if (this_present_projectName || that_present_projectName) {
20174 if (!(this_present_projectName && that_present_projectName))
20175 return false;
20176 if (!this.projectName.equals(that.projectName))
20177 return false;
20178 }
20179
20180 boolean this_present_repositoryName = true && this.isSetRepositoryName();
20181 boolean that_present_repositoryName = true && that.isSetRepositoryName();
20182 if (this_present_repositoryName || that_present_repositoryName) {
20183 if (!(this_present_repositoryName && that_present_repositoryName))
20184 return false;
20185 if (!this.repositoryName.equals(that.repositoryName))
20186 return false;
20187 }
20188
20189 boolean this_present_baseRevision = true && this.isSetBaseRevision();
20190 boolean that_present_baseRevision = true && that.isSetBaseRevision();
20191 if (this_present_baseRevision || that_present_baseRevision) {
20192 if (!(this_present_baseRevision && that_present_baseRevision))
20193 return false;
20194 if (!this.baseRevision.equals(that.baseRevision))
20195 return false;
20196 }
20197
20198 boolean this_present_changes = true && this.isSetChanges();
20199 boolean that_present_changes = true && that.isSetChanges();
20200 if (this_present_changes || that_present_changes) {
20201 if (!(this_present_changes && that_present_changes))
20202 return false;
20203 if (!this.changes.equals(that.changes))
20204 return false;
20205 }
20206
20207 return true;
20208 }
20209
20210 @Override
20211 public int hashCode() {
20212 List<Object> list = new ArrayList<Object>();
20213
20214 boolean present_projectName = true && (isSetProjectName());
20215 list.add(present_projectName);
20216 if (present_projectName)
20217 list.add(projectName);
20218
20219 boolean present_repositoryName = true && (isSetRepositoryName());
20220 list.add(present_repositoryName);
20221 if (present_repositoryName)
20222 list.add(repositoryName);
20223
20224 boolean present_baseRevision = true && (isSetBaseRevision());
20225 list.add(present_baseRevision);
20226 if (present_baseRevision)
20227 list.add(baseRevision);
20228
20229 boolean present_changes = true && (isSetChanges());
20230 list.add(present_changes);
20231 if (present_changes)
20232 list.add(changes);
20233
20234 return list.hashCode();
20235 }
20236
20237 @Override
20238 public int compareTo(getPreviewDiffs_args other) {
20239 if (!getClass().equals(other.getClass())) {
20240 return getClass().getName().compareTo(other.getClass().getName());
20241 }
20242
20243 int lastComparison = 0;
20244
20245 lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName());
20246 if (lastComparison != 0) {
20247 return lastComparison;
20248 }
20249 if (isSetProjectName()) {
20250 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName);
20251 if (lastComparison != 0) {
20252 return lastComparison;
20253 }
20254 }
20255 lastComparison = Boolean.valueOf(isSetRepositoryName()).compareTo(other.isSetRepositoryName());
20256 if (lastComparison != 0) {
20257 return lastComparison;
20258 }
20259 if (isSetRepositoryName()) {
20260 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.repositoryName, other.repositoryName);
20261 if (lastComparison != 0) {
20262 return lastComparison;
20263 }
20264 }
20265 lastComparison = Boolean.valueOf(isSetBaseRevision()).compareTo(other.isSetBaseRevision());
20266 if (lastComparison != 0) {
20267 return lastComparison;
20268 }
20269 if (isSetBaseRevision()) {
20270 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.baseRevision, other.baseRevision);
20271 if (lastComparison != 0) {
20272 return lastComparison;
20273 }
20274 }
20275 lastComparison = Boolean.valueOf(isSetChanges()).compareTo(other.isSetChanges());
20276 if (lastComparison != 0) {
20277 return lastComparison;
20278 }
20279 if (isSetChanges()) {
20280 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.changes, other.changes);
20281 if (lastComparison != 0) {
20282 return lastComparison;
20283 }
20284 }
20285 return 0;
20286 }
20287
20288 public _Fields fieldForId(int fieldId) {
20289 return _Fields.findByThriftId(fieldId);
20290 }
20291
20292 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20293 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
20294 }
20295
20296 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20297 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
20298 }
20299
20300 @Override
20301 public String toString() {
20302 StringBuilder sb = new StringBuilder("getPreviewDiffs_args(");
20303 boolean first = true;
20304
20305 sb.append("projectName:");
20306 if (this.projectName == null) {
20307 sb.append("null");
20308 } else {
20309 sb.append(this.projectName);
20310 }
20311 first = false;
20312 if (!first) sb.append(", ");
20313 sb.append("repositoryName:");
20314 if (this.repositoryName == null) {
20315 sb.append("null");
20316 } else {
20317 sb.append(this.repositoryName);
20318 }
20319 first = false;
20320 if (!first) sb.append(", ");
20321 sb.append("baseRevision:");
20322 if (this.baseRevision == null) {
20323 sb.append("null");
20324 } else {
20325 sb.append(this.baseRevision);
20326 }
20327 first = false;
20328 if (!first) sb.append(", ");
20329 sb.append("changes:");
20330 if (this.changes == null) {
20331 sb.append("null");
20332 } else {
20333 sb.append(this.changes);
20334 }
20335 first = false;
20336 sb.append(")");
20337 return sb.toString();
20338 }
20339
20340 public void validate() throws org.apache.thrift.TException {
20341
20342
20343 if (baseRevision != null) {
20344 baseRevision.validate();
20345 }
20346 }
20347
20348 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20349 try {
20350 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20351 } catch (org.apache.thrift.TException te) {
20352 throw new java.io.IOException(te);
20353 }
20354 }
20355
20356 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20357 try {
20358 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20359 } catch (org.apache.thrift.TException te) {
20360 throw new java.io.IOException(te);
20361 }
20362 }
20363
20364 private static class getPreviewDiffs_argsStandardSchemeFactory implements SchemeFactory {
20365 public getPreviewDiffs_argsStandardScheme getScheme() {
20366 return new getPreviewDiffs_argsStandardScheme();
20367 }
20368 }
20369
20370 private static class getPreviewDiffs_argsStandardScheme extends StandardScheme<getPreviewDiffs_args> {
20371
20372 public void read(org.apache.thrift.protocol.TProtocol iprot, getPreviewDiffs_args struct) throws org.apache.thrift.TException {
20373 org.apache.thrift.protocol.TField schemeField;
20374 iprot.readStructBegin();
20375 while (true)
20376 {
20377 schemeField = iprot.readFieldBegin();
20378 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
20379 break;
20380 }
20381 switch (schemeField.id) {
20382 case 1:
20383 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
20384 struct.projectName = iprot.readString();
20385 struct.setProjectNameIsSet(true);
20386 } else {
20387 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
20388 }
20389 break;
20390 case 2:
20391 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
20392 struct.repositoryName = iprot.readString();
20393 struct.setRepositoryNameIsSet(true);
20394 } else {
20395 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
20396 }
20397 break;
20398 case 3:
20399 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
20400 struct.baseRevision = new Revision();
20401 struct.baseRevision.read(iprot);
20402 struct.setBaseRevisionIsSet(true);
20403 } else {
20404 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
20405 }
20406 break;
20407 case 4:
20408 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
20409 {
20410 org.apache.thrift.protocol.TList _list136 = iprot.readListBegin();
20411 struct.changes = new ArrayList<Change>(_list136.size);
20412 Change _elem137;
20413 for (int _i138 = 0; _i138 < _list136.size; ++_i138)
20414 {
20415 _elem137 = new Change();
20416 _elem137.read(iprot);
20417 struct.changes.add(_elem137);
20418 }
20419 iprot.readListEnd();
20420 }
20421 struct.setChangesIsSet(true);
20422 } else {
20423 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
20424 }
20425 break;
20426 default:
20427 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
20428 }
20429 iprot.readFieldEnd();
20430 }
20431 iprot.readStructEnd();
20432
20433
20434 struct.validate();
20435 }
20436
20437 public void write(org.apache.thrift.protocol.TProtocol oprot, getPreviewDiffs_args struct) throws org.apache.thrift.TException {
20438 struct.validate();
20439
20440 oprot.writeStructBegin(STRUCT_DESC);
20441 if (struct.projectName != null) {
20442 oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC);
20443 oprot.writeString(struct.projectName);
20444 oprot.writeFieldEnd();
20445 }
20446 if (struct.repositoryName != null) {
20447 oprot.writeFieldBegin(REPOSITORY_NAME_FIELD_DESC);
20448 oprot.writeString(struct.repositoryName);
20449 oprot.writeFieldEnd();
20450 }
20451 if (struct.baseRevision != null) {
20452 oprot.writeFieldBegin(BASE_REVISION_FIELD_DESC);
20453 struct.baseRevision.write(oprot);
20454 oprot.writeFieldEnd();
20455 }
20456 if (struct.changes != null) {
20457 oprot.writeFieldBegin(CHANGES_FIELD_DESC);
20458 {
20459 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.changes.size()));
20460 for (Change _iter139 : struct.changes)
20461 {
20462 _iter139.write(oprot);
20463 }
20464 oprot.writeListEnd();
20465 }
20466 oprot.writeFieldEnd();
20467 }
20468 oprot.writeFieldStop();
20469 oprot.writeStructEnd();
20470 }
20471
20472 }
20473
20474 private static class getPreviewDiffs_argsTupleSchemeFactory implements SchemeFactory {
20475 public getPreviewDiffs_argsTupleScheme getScheme() {
20476 return new getPreviewDiffs_argsTupleScheme();
20477 }
20478 }
20479
20480 private static class getPreviewDiffs_argsTupleScheme extends TupleScheme<getPreviewDiffs_args> {
20481
20482 @Override
20483 public void write(org.apache.thrift.protocol.TProtocol prot, getPreviewDiffs_args struct) throws org.apache.thrift.TException {
20484 TTupleProtocol oprot = (TTupleProtocol) prot;
20485 BitSet optionals = new BitSet();
20486 if (struct.isSetProjectName()) {
20487 optionals.set(0);
20488 }
20489 if (struct.isSetRepositoryName()) {
20490 optionals.set(1);
20491 }
20492 if (struct.isSetBaseRevision()) {
20493 optionals.set(2);
20494 }
20495 if (struct.isSetChanges()) {
20496 optionals.set(3);
20497 }
20498 oprot.writeBitSet(optionals, 4);
20499 if (struct.isSetProjectName()) {
20500 oprot.writeString(struct.projectName);
20501 }
20502 if (struct.isSetRepositoryName()) {
20503 oprot.writeString(struct.repositoryName);
20504 }
20505 if (struct.isSetBaseRevision()) {
20506 struct.baseRevision.write(oprot);
20507 }
20508 if (struct.isSetChanges()) {
20509 {
20510 oprot.writeI32(struct.changes.size());
20511 for (Change _iter140 : struct.changes)
20512 {
20513 _iter140.write(oprot);
20514 }
20515 }
20516 }
20517 }
20518
20519 @Override
20520 public void read(org.apache.thrift.protocol.TProtocol prot, getPreviewDiffs_args struct) throws org.apache.thrift.TException {
20521 TTupleProtocol iprot = (TTupleProtocol) prot;
20522 BitSet incoming = iprot.readBitSet(4);
20523 if (incoming.get(0)) {
20524 struct.projectName = iprot.readString();
20525 struct.setProjectNameIsSet(true);
20526 }
20527 if (incoming.get(1)) {
20528 struct.repositoryName = iprot.readString();
20529 struct.setRepositoryNameIsSet(true);
20530 }
20531 if (incoming.get(2)) {
20532 struct.baseRevision = new Revision();
20533 struct.baseRevision.read(iprot);
20534 struct.setBaseRevisionIsSet(true);
20535 }
20536 if (incoming.get(3)) {
20537 {
20538 org.apache.thrift.protocol.TList _list141 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
20539 struct.changes = new ArrayList<Change>(_list141.size);
20540 Change _elem142;
20541 for (int _i143 = 0; _i143 < _list141.size; ++_i143)
20542 {
20543 _elem142 = new Change();
20544 _elem142.read(iprot);
20545 struct.changes.add(_elem142);
20546 }
20547 }
20548 struct.setChangesIsSet(true);
20549 }
20550 }
20551 }
20552
20553 }
20554
20555 public static class getPreviewDiffs_result implements org.apache.thrift.TBase<getPreviewDiffs_result, getPreviewDiffs_result._Fields>, java.io.Serializable, Cloneable, Comparable<getPreviewDiffs_result> {
20556 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPreviewDiffs_result");
20557
20558 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
20559 private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
20560
20561 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
20562 static {
20563 schemes.put(StandardScheme.class, new getPreviewDiffs_resultStandardSchemeFactory());
20564 schemes.put(TupleScheme.class, new getPreviewDiffs_resultTupleSchemeFactory());
20565 }
20566
20567 public List<Change> success;
20568 public CentralDogmaException e;
20569
20570
20571 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20572 SUCCESS((short)0, "success"),
20573 E((short)1, "e");
20574
20575 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20576
20577 static {
20578 for (_Fields field : EnumSet.allOf(_Fields.class)) {
20579 byName.put(field.getFieldName(), field);
20580 }
20581 }
20582
20583
20584
20585
20586 public static _Fields findByThriftId(int fieldId) {
20587 switch(fieldId) {
20588 case 0:
20589 return SUCCESS;
20590 case 1:
20591 return E;
20592 default:
20593 return null;
20594 }
20595 }
20596
20597
20598
20599
20600
20601 public static _Fields findByThriftIdOrThrow(int fieldId) {
20602 _Fields fields = findByThriftId(fieldId);
20603 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20604 return fields;
20605 }
20606
20607
20608
20609
20610 public static _Fields findByName(String name) {
20611 return byName.get(name);
20612 }
20613
20614 private final short _thriftId;
20615 private final String _fieldName;
20616
20617 _Fields(short thriftId, String fieldName) {
20618 _thriftId = thriftId;
20619 _fieldName = fieldName;
20620 }
20621
20622 public short getThriftFieldId() {
20623 return _thriftId;
20624 }
20625
20626 public String getFieldName() {
20627 return _fieldName;
20628 }
20629 }
20630
20631
20632 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20633 static {
20634 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20635 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
20636 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
20637 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Change.class))));
20638 tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
20639 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
20640 metaDataMap = Collections.unmodifiableMap(tmpMap);
20641 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPreviewDiffs_result.class, metaDataMap);
20642 }
20643
20644 public getPreviewDiffs_result() {
20645 }
20646
20647 public getPreviewDiffs_result(
20648 List<Change> success,
20649 CentralDogmaException e)
20650 {
20651 this();
20652 this.success = success;
20653 this.e = e;
20654 }
20655
20656
20657
20658
20659 public getPreviewDiffs_result(getPreviewDiffs_result other) {
20660 if (other.isSetSuccess()) {
20661 List<Change> __this__success = new ArrayList<Change>(other.success.size());
20662 for (Change other_element : other.success) {
20663 __this__success.add(new Change(other_element));
20664 }
20665 this.success = __this__success;
20666 }
20667 if (other.isSetE()) {
20668 this.e = new CentralDogmaException(other.e);
20669 }
20670 }
20671
20672 public getPreviewDiffs_result deepCopy() {
20673 return new getPreviewDiffs_result(this);
20674 }
20675
20676 @Override
20677 public void clear() {
20678 this.success = null;
20679 this.e = null;
20680 }
20681
20682 public int getSuccessSize() {
20683 return (this.success == null) ? 0 : this.success.size();
20684 }
20685
20686 public java.util.Iterator<Change> getSuccessIterator() {
20687 return (this.success == null) ? null : this.success.iterator();
20688 }
20689
20690 public void addToSuccess(Change elem) {
20691 if (this.success == null) {
20692 this.success = new ArrayList<Change>();
20693 }
20694 this.success.add(elem);
20695 }
20696
20697 public List<Change> getSuccess() {
20698 return this.success;
20699 }
20700
20701 public getPreviewDiffs_result setSuccess(List<Change> success) {
20702 this.success = success;
20703 return this;
20704 }
20705
20706 public void unsetSuccess() {
20707 this.success = null;
20708 }
20709
20710
20711 public boolean isSetSuccess() {
20712 return this.success != null;
20713 }
20714
20715 public void setSuccessIsSet(boolean value) {
20716 if (!value) {
20717 this.success = null;
20718 }
20719 }
20720
20721 public CentralDogmaException getE() {
20722 return this.e;
20723 }
20724
20725 public getPreviewDiffs_result setE(CentralDogmaException e) {
20726 this.e = e;
20727 return this;
20728 }
20729
20730 public void unsetE() {
20731 this.e = null;
20732 }
20733
20734
20735 public boolean isSetE() {
20736 return this.e != null;
20737 }
20738
20739 public void setEIsSet(boolean value) {
20740 if (!value) {
20741 this.e = null;
20742 }
20743 }
20744
20745 public void setFieldValue(_Fields field, Object value) {
20746 switch (field) {
20747 case SUCCESS:
20748 if (value == null) {
20749 unsetSuccess();
20750 } else {
20751 setSuccess((List<Change>)value);
20752 }
20753 break;
20754
20755 case E:
20756 if (value == null) {
20757 unsetE();
20758 } else {
20759 setE((CentralDogmaException)value);
20760 }
20761 break;
20762
20763 }
20764 }
20765
20766 public Object getFieldValue(_Fields field) {
20767 switch (field) {
20768 case SUCCESS:
20769 return getSuccess();
20770
20771 case E:
20772 return getE();
20773
20774 }
20775 throw new IllegalStateException();
20776 }
20777
20778
20779 public boolean isSet(_Fields field) {
20780 if (field == null) {
20781 throw new IllegalArgumentException();
20782 }
20783
20784 switch (field) {
20785 case SUCCESS:
20786 return isSetSuccess();
20787 case E:
20788 return isSetE();
20789 }
20790 throw new IllegalStateException();
20791 }
20792
20793 @Override
20794 public boolean equals(Object that) {
20795 if (that == null)
20796 return false;
20797 if (that instanceof getPreviewDiffs_result)
20798 return this.equals((getPreviewDiffs_result)that);
20799 return false;
20800 }
20801
20802 public boolean equals(getPreviewDiffs_result that) {
20803 if (that == null)
20804 return false;
20805
20806 boolean this_present_success = true && this.isSetSuccess();
20807 boolean that_present_success = true && that.isSetSuccess();
20808 if (this_present_success || that_present_success) {
20809 if (!(this_present_success && that_present_success))
20810 return false;
20811 if (!this.success.equals(that.success))
20812 return false;
20813 }
20814
20815 boolean this_present_e = true && this.isSetE();
20816 boolean that_present_e = true && that.isSetE();
20817 if (this_present_e || that_present_e) {
20818 if (!(this_present_e && that_present_e))
20819 return false;
20820 if (!this.e.equals(that.e))
20821 return false;
20822 }
20823
20824 return true;
20825 }
20826
20827 @Override
20828 public int hashCode() {
20829 List<Object> list = new ArrayList<Object>();
20830
20831 boolean present_success = true && (isSetSuccess());
20832 list.add(present_success);
20833 if (present_success)
20834 list.add(success);
20835
20836 boolean present_e = true && (isSetE());
20837 list.add(present_e);
20838 if (present_e)
20839 list.add(e);
20840
20841 return list.hashCode();
20842 }
20843
20844 @Override
20845 public int compareTo(getPreviewDiffs_result other) {
20846 if (!getClass().equals(other.getClass())) {
20847 return getClass().getName().compareTo(other.getClass().getName());
20848 }
20849
20850 int lastComparison = 0;
20851
20852 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
20853 if (lastComparison != 0) {
20854 return lastComparison;
20855 }
20856 if (isSetSuccess()) {
20857 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
20858 if (lastComparison != 0) {
20859 return lastComparison;
20860 }
20861 }
20862 lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE());
20863 if (lastComparison != 0) {
20864 return lastComparison;
20865 }
20866 if (isSetE()) {
20867 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e);
20868 if (lastComparison != 0) {
20869 return lastComparison;
20870 }
20871 }
20872 return 0;
20873 }
20874
20875 public _Fields fieldForId(int fieldId) {
20876 return _Fields.findByThriftId(fieldId);
20877 }
20878
20879 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20880 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
20881 }
20882
20883 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20884 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
20885 }
20886
20887 @Override
20888 public String toString() {
20889 StringBuilder sb = new StringBuilder("getPreviewDiffs_result(");
20890 boolean first = true;
20891
20892 sb.append("success:");
20893 if (this.success == null) {
20894 sb.append("null");
20895 } else {
20896 sb.append(this.success);
20897 }
20898 first = false;
20899 if (!first) sb.append(", ");
20900 sb.append("e:");
20901 if (this.e == null) {
20902 sb.append("null");
20903 } else {
20904 sb.append(this.e);
20905 }
20906 first = false;
20907 sb.append(")");
20908 return sb.toString();
20909 }
20910
20911 public void validate() throws org.apache.thrift.TException {
20912
20913
20914 }
20915
20916 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20917 try {
20918 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20919 } catch (org.apache.thrift.TException te) {
20920 throw new java.io.IOException(te);
20921 }
20922 }
20923
20924 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20925 try {
20926 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20927 } catch (org.apache.thrift.TException te) {
20928 throw new java.io.IOException(te);
20929 }
20930 }
20931
20932 private static class getPreviewDiffs_resultStandardSchemeFactory implements SchemeFactory {
20933 public getPreviewDiffs_resultStandardScheme getScheme() {
20934 return new getPreviewDiffs_resultStandardScheme();
20935 }
20936 }
20937
20938 private static class getPreviewDiffs_resultStandardScheme extends StandardScheme<getPreviewDiffs_result> {
20939
20940 public void read(org.apache.thrift.protocol.TProtocol iprot, getPreviewDiffs_result struct) throws org.apache.thrift.TException {
20941 org.apache.thrift.protocol.TField schemeField;
20942 iprot.readStructBegin();
20943 while (true)
20944 {
20945 schemeField = iprot.readFieldBegin();
20946 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
20947 break;
20948 }
20949 switch (schemeField.id) {
20950 case 0:
20951 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
20952 {
20953 org.apache.thrift.protocol.TList _list144 = iprot.readListBegin();
20954 struct.success = new ArrayList<Change>(_list144.size);
20955 Change _elem145;
20956 for (int _i146 = 0; _i146 < _list144.size; ++_i146)
20957 {
20958 _elem145 = new Change();
20959 _elem145.read(iprot);
20960 struct.success.add(_elem145);
20961 }
20962 iprot.readListEnd();
20963 }
20964 struct.setSuccessIsSet(true);
20965 } else {
20966 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
20967 }
20968 break;
20969 case 1:
20970 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
20971 struct.e = new CentralDogmaException();
20972 struct.e.read(iprot);
20973 struct.setEIsSet(true);
20974 } else {
20975 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
20976 }
20977 break;
20978 default:
20979 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
20980 }
20981 iprot.readFieldEnd();
20982 }
20983 iprot.readStructEnd();
20984
20985
20986 struct.validate();
20987 }
20988
20989 public void write(org.apache.thrift.protocol.TProtocol oprot, getPreviewDiffs_result struct) throws org.apache.thrift.TException {
20990 struct.validate();
20991
20992 oprot.writeStructBegin(STRUCT_DESC);
20993 if (struct.success != null) {
20994 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
20995 {
20996 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
20997 for (Change _iter147 : struct.success)
20998 {
20999 _iter147.write(oprot);
21000 }
21001 oprot.writeListEnd();
21002 }
21003 oprot.writeFieldEnd();
21004 }
21005 if (struct.e != null) {
21006 oprot.writeFieldBegin(E_FIELD_DESC);
21007 struct.e.write(oprot);
21008 oprot.writeFieldEnd();
21009 }
21010 oprot.writeFieldStop();
21011 oprot.writeStructEnd();
21012 }
21013
21014 }
21015
21016 private static class getPreviewDiffs_resultTupleSchemeFactory implements SchemeFactory {
21017 public getPreviewDiffs_resultTupleScheme getScheme() {
21018 return new getPreviewDiffs_resultTupleScheme();
21019 }
21020 }
21021
21022 private static class getPreviewDiffs_resultTupleScheme extends TupleScheme<getPreviewDiffs_result> {
21023
21024 @Override
21025 public void write(org.apache.thrift.protocol.TProtocol prot, getPreviewDiffs_result struct) throws org.apache.thrift.TException {
21026 TTupleProtocol oprot = (TTupleProtocol) prot;
21027 BitSet optionals = new BitSet();
21028 if (struct.isSetSuccess()) {
21029 optionals.set(0);
21030 }
21031 if (struct.isSetE()) {
21032 optionals.set(1);
21033 }
21034 oprot.writeBitSet(optionals, 2);
21035 if (struct.isSetSuccess()) {
21036 {
21037 oprot.writeI32(struct.success.size());
21038 for (Change _iter148 : struct.success)
21039 {
21040 _iter148.write(oprot);
21041 }
21042 }
21043 }
21044 if (struct.isSetE()) {
21045 struct.e.write(oprot);
21046 }
21047 }
21048
21049 @Override
21050 public void read(org.apache.thrift.protocol.TProtocol prot, getPreviewDiffs_result struct) throws org.apache.thrift.TException {
21051 TTupleProtocol iprot = (TTupleProtocol) prot;
21052 BitSet incoming = iprot.readBitSet(2);
21053 if (incoming.get(0)) {
21054 {
21055 org.apache.thrift.protocol.TList _list149 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
21056 struct.success = new ArrayList<Change>(_list149.size);
21057 Change _elem150;
21058 for (int _i151 = 0; _i151 < _list149.size; ++_i151)
21059 {
21060 _elem150 = new Change();
21061 _elem150.read(iprot);
21062 struct.success.add(_elem150);
21063 }
21064 }
21065 struct.setSuccessIsSet(true);
21066 }
21067 if (incoming.get(1)) {
21068 struct.e = new CentralDogmaException();
21069 struct.e.read(iprot);
21070 struct.setEIsSet(true);
21071 }
21072 }
21073 }
21074
21075 }
21076
21077 public static class push_args implements org.apache.thrift.TBase<push_args, push_args._Fields>, java.io.Serializable, Cloneable, Comparable<push_args> {
21078 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("push_args");
21079
21080 private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)1);
21081 private static final org.apache.thrift.protocol.TField REPOSITORY_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("repositoryName", org.apache.thrift.protocol.TType.STRING, (short)2);
21082 private static final org.apache.thrift.protocol.TField BASE_REVISION_FIELD_DESC = new org.apache.thrift.protocol.TField("baseRevision", org.apache.thrift.protocol.TType.STRUCT, (short)3);
21083 private static final org.apache.thrift.protocol.TField AUTHOR_FIELD_DESC = new org.apache.thrift.protocol.TField("author", org.apache.thrift.protocol.TType.STRUCT, (short)4);
21084 private static final org.apache.thrift.protocol.TField SUMMARY_FIELD_DESC = new org.apache.thrift.protocol.TField("summary", org.apache.thrift.protocol.TType.STRING, (short)5);
21085 private static final org.apache.thrift.protocol.TField DETAIL_FIELD_DESC = new org.apache.thrift.protocol.TField("detail", org.apache.thrift.protocol.TType.STRUCT, (short)6);
21086 private static final org.apache.thrift.protocol.TField CHANGES_FIELD_DESC = new org.apache.thrift.protocol.TField("changes", org.apache.thrift.protocol.TType.LIST, (short)7);
21087
21088 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
21089 static {
21090 schemes.put(StandardScheme.class, new push_argsStandardSchemeFactory());
21091 schemes.put(TupleScheme.class, new push_argsTupleSchemeFactory());
21092 }
21093
21094 public String projectName;
21095 public String repositoryName;
21096 public Revision baseRevision;
21097 public Author author;
21098 public String summary;
21099 public Comment detail;
21100 public List<Change> changes;
21101
21102
21103 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21104 PROJECT_NAME((short)1, "projectName"),
21105 REPOSITORY_NAME((short)2, "repositoryName"),
21106 BASE_REVISION((short)3, "baseRevision"),
21107 AUTHOR((short)4, "author"),
21108 SUMMARY((short)5, "summary"),
21109 DETAIL((short)6, "detail"),
21110 CHANGES((short)7, "changes");
21111
21112 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21113
21114 static {
21115 for (_Fields field : EnumSet.allOf(_Fields.class)) {
21116 byName.put(field.getFieldName(), field);
21117 }
21118 }
21119
21120
21121
21122
21123 public static _Fields findByThriftId(int fieldId) {
21124 switch(fieldId) {
21125 case 1:
21126 return PROJECT_NAME;
21127 case 2:
21128 return REPOSITORY_NAME;
21129 case 3:
21130 return BASE_REVISION;
21131 case 4:
21132 return AUTHOR;
21133 case 5:
21134 return SUMMARY;
21135 case 6:
21136 return DETAIL;
21137 case 7:
21138 return CHANGES;
21139 default:
21140 return null;
21141 }
21142 }
21143
21144
21145
21146
21147
21148 public static _Fields findByThriftIdOrThrow(int fieldId) {
21149 _Fields fields = findByThriftId(fieldId);
21150 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21151 return fields;
21152 }
21153
21154
21155
21156
21157 public static _Fields findByName(String name) {
21158 return byName.get(name);
21159 }
21160
21161 private final short _thriftId;
21162 private final String _fieldName;
21163
21164 _Fields(short thriftId, String fieldName) {
21165 _thriftId = thriftId;
21166 _fieldName = fieldName;
21167 }
21168
21169 public short getThriftFieldId() {
21170 return _thriftId;
21171 }
21172
21173 public String getFieldName() {
21174 return _fieldName;
21175 }
21176 }
21177
21178
21179 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21180 static {
21181 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21182 tmpMap.put(_Fields.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", org.apache.thrift.TFieldRequirementType.DEFAULT,
21183 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
21184 tmpMap.put(_Fields.REPOSITORY_NAME, new org.apache.thrift.meta_data.FieldMetaData("repositoryName", org.apache.thrift.TFieldRequirementType.DEFAULT,
21185 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
21186 tmpMap.put(_Fields.BASE_REVISION, new org.apache.thrift.meta_data.FieldMetaData("baseRevision", org.apache.thrift.TFieldRequirementType.DEFAULT,
21187 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Revision.class)));
21188 tmpMap.put(_Fields.AUTHOR, new org.apache.thrift.meta_data.FieldMetaData("author", org.apache.thrift.TFieldRequirementType.DEFAULT,
21189 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Author.class)));
21190 tmpMap.put(_Fields.SUMMARY, new org.apache.thrift.meta_data.FieldMetaData("summary", org.apache.thrift.TFieldRequirementType.DEFAULT,
21191 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
21192 tmpMap.put(_Fields.DETAIL, new org.apache.thrift.meta_data.FieldMetaData("detail", org.apache.thrift.TFieldRequirementType.DEFAULT,
21193 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Comment.class)));
21194 tmpMap.put(_Fields.CHANGES, new org.apache.thrift.meta_data.FieldMetaData("changes", org.apache.thrift.TFieldRequirementType.DEFAULT,
21195 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
21196 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Change.class))));
21197 metaDataMap = Collections.unmodifiableMap(tmpMap);
21198 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(push_args.class, metaDataMap);
21199 }
21200
21201 public push_args() {
21202 }
21203
21204 public push_args(
21205 String projectName,
21206 String repositoryName,
21207 Revision baseRevision,
21208 Author author,
21209 String summary,
21210 Comment detail,
21211 List<Change> changes)
21212 {
21213 this();
21214 this.projectName = projectName;
21215 this.repositoryName = repositoryName;
21216 this.baseRevision = baseRevision;
21217 this.author = author;
21218 this.summary = summary;
21219 this.detail = detail;
21220 this.changes = changes;
21221 }
21222
21223
21224
21225
21226 public push_args(push_args other) {
21227 if (other.isSetProjectName()) {
21228 this.projectName = other.projectName;
21229 }
21230 if (other.isSetRepositoryName()) {
21231 this.repositoryName = other.repositoryName;
21232 }
21233 if (other.isSetBaseRevision()) {
21234 this.baseRevision = new Revision(other.baseRevision);
21235 }
21236 if (other.isSetAuthor()) {
21237 this.author = new Author(other.author);
21238 }
21239 if (other.isSetSummary()) {
21240 this.summary = other.summary;
21241 }
21242 if (other.isSetDetail()) {
21243 this.detail = new Comment(other.detail);
21244 }
21245 if (other.isSetChanges()) {
21246 List<Change> __this__changes = new ArrayList<Change>(other.changes.size());
21247 for (Change other_element : other.changes) {
21248 __this__changes.add(new Change(other_element));
21249 }
21250 this.changes = __this__changes;
21251 }
21252 }
21253
21254 public push_args deepCopy() {
21255 return new push_args(this);
21256 }
21257
21258 @Override
21259 public void clear() {
21260 this.projectName = null;
21261 this.repositoryName = null;
21262 this.baseRevision = null;
21263 this.author = null;
21264 this.summary = null;
21265 this.detail = null;
21266 this.changes = null;
21267 }
21268
21269 public String getProjectName() {
21270 return this.projectName;
21271 }
21272
21273 public push_args setProjectName(String projectName) {
21274 this.projectName = projectName;
21275 return this;
21276 }
21277
21278 public void unsetProjectName() {
21279 this.projectName = null;
21280 }
21281
21282
21283 public boolean isSetProjectName() {
21284 return this.projectName != null;
21285 }
21286
21287 public void setProjectNameIsSet(boolean value) {
21288 if (!value) {
21289 this.projectName = null;
21290 }
21291 }
21292
21293 public String getRepositoryName() {
21294 return this.repositoryName;
21295 }
21296
21297 public push_args setRepositoryName(String repositoryName) {
21298 this.repositoryName = repositoryName;
21299 return this;
21300 }
21301
21302 public void unsetRepositoryName() {
21303 this.repositoryName = null;
21304 }
21305
21306
21307 public boolean isSetRepositoryName() {
21308 return this.repositoryName != null;
21309 }
21310
21311 public void setRepositoryNameIsSet(boolean value) {
21312 if (!value) {
21313 this.repositoryName = null;
21314 }
21315 }
21316
21317 public Revision getBaseRevision() {
21318 return this.baseRevision;
21319 }
21320
21321 public push_args setBaseRevision(Revision baseRevision) {
21322 this.baseRevision = baseRevision;
21323 return this;
21324 }
21325
21326 public void unsetBaseRevision() {
21327 this.baseRevision = null;
21328 }
21329
21330
21331 public boolean isSetBaseRevision() {
21332 return this.baseRevision != null;
21333 }
21334
21335 public void setBaseRevisionIsSet(boolean value) {
21336 if (!value) {
21337 this.baseRevision = null;
21338 }
21339 }
21340
21341 public Author getAuthor() {
21342 return this.author;
21343 }
21344
21345 public push_args setAuthor(Author author) {
21346 this.author = author;
21347 return this;
21348 }
21349
21350 public void unsetAuthor() {
21351 this.author = null;
21352 }
21353
21354
21355 public boolean isSetAuthor() {
21356 return this.author != null;
21357 }
21358
21359 public void setAuthorIsSet(boolean value) {
21360 if (!value) {
21361 this.author = null;
21362 }
21363 }
21364
21365 public String getSummary() {
21366 return this.summary;
21367 }
21368
21369 public push_args setSummary(String summary) {
21370 this.summary = summary;
21371 return this;
21372 }
21373
21374 public void unsetSummary() {
21375 this.summary = null;
21376 }
21377
21378
21379 public boolean isSetSummary() {
21380 return this.summary != null;
21381 }
21382
21383 public void setSummaryIsSet(boolean value) {
21384 if (!value) {
21385 this.summary = null;
21386 }
21387 }
21388
21389 public Comment getDetail() {
21390 return this.detail;
21391 }
21392
21393 public push_args setDetail(Comment detail) {
21394 this.detail = detail;
21395 return this;
21396 }
21397
21398 public void unsetDetail() {
21399 this.detail = null;
21400 }
21401
21402
21403 public boolean isSetDetail() {
21404 return this.detail != null;
21405 }
21406
21407 public void setDetailIsSet(boolean value) {
21408 if (!value) {
21409 this.detail = null;
21410 }
21411 }
21412
21413 public int getChangesSize() {
21414 return (this.changes == null) ? 0 : this.changes.size();
21415 }
21416
21417 public java.util.Iterator<Change> getChangesIterator() {
21418 return (this.changes == null) ? null : this.changes.iterator();
21419 }
21420
21421 public void addToChanges(Change elem) {
21422 if (this.changes == null) {
21423 this.changes = new ArrayList<Change>();
21424 }
21425 this.changes.add(elem);
21426 }
21427
21428 public List<Change> getChanges() {
21429 return this.changes;
21430 }
21431
21432 public push_args setChanges(List<Change> changes) {
21433 this.changes = changes;
21434 return this;
21435 }
21436
21437 public void unsetChanges() {
21438 this.changes = null;
21439 }
21440
21441
21442 public boolean isSetChanges() {
21443 return this.changes != null;
21444 }
21445
21446 public void setChangesIsSet(boolean value) {
21447 if (!value) {
21448 this.changes = null;
21449 }
21450 }
21451
21452 public void setFieldValue(_Fields field, Object value) {
21453 switch (field) {
21454 case PROJECT_NAME:
21455 if (value == null) {
21456 unsetProjectName();
21457 } else {
21458 setProjectName((String)value);
21459 }
21460 break;
21461
21462 case REPOSITORY_NAME:
21463 if (value == null) {
21464 unsetRepositoryName();
21465 } else {
21466 setRepositoryName((String)value);
21467 }
21468 break;
21469
21470 case BASE_REVISION:
21471 if (value == null) {
21472 unsetBaseRevision();
21473 } else {
21474 setBaseRevision((Revision)value);
21475 }
21476 break;
21477
21478 case AUTHOR:
21479 if (value == null) {
21480 unsetAuthor();
21481 } else {
21482 setAuthor((Author)value);
21483 }
21484 break;
21485
21486 case SUMMARY:
21487 if (value == null) {
21488 unsetSummary();
21489 } else {
21490 setSummary((String)value);
21491 }
21492 break;
21493
21494 case DETAIL:
21495 if (value == null) {
21496 unsetDetail();
21497 } else {
21498 setDetail((Comment)value);
21499 }
21500 break;
21501
21502 case CHANGES:
21503 if (value == null) {
21504 unsetChanges();
21505 } else {
21506 setChanges((List<Change>)value);
21507 }
21508 break;
21509
21510 }
21511 }
21512
21513 public Object getFieldValue(_Fields field) {
21514 switch (field) {
21515 case PROJECT_NAME:
21516 return getProjectName();
21517
21518 case REPOSITORY_NAME:
21519 return getRepositoryName();
21520
21521 case BASE_REVISION:
21522 return getBaseRevision();
21523
21524 case AUTHOR:
21525 return getAuthor();
21526
21527 case SUMMARY:
21528 return getSummary();
21529
21530 case DETAIL:
21531 return getDetail();
21532
21533 case CHANGES:
21534 return getChanges();
21535
21536 }
21537 throw new IllegalStateException();
21538 }
21539
21540
21541 public boolean isSet(_Fields field) {
21542 if (field == null) {
21543 throw new IllegalArgumentException();
21544 }
21545
21546 switch (field) {
21547 case PROJECT_NAME:
21548 return isSetProjectName();
21549 case REPOSITORY_NAME:
21550 return isSetRepositoryName();
21551 case BASE_REVISION:
21552 return isSetBaseRevision();
21553 case AUTHOR:
21554 return isSetAuthor();
21555 case SUMMARY:
21556 return isSetSummary();
21557 case DETAIL:
21558 return isSetDetail();
21559 case CHANGES:
21560 return isSetChanges();
21561 }
21562 throw new IllegalStateException();
21563 }
21564
21565 @Override
21566 public boolean equals(Object that) {
21567 if (that == null)
21568 return false;
21569 if (that instanceof push_args)
21570 return this.equals((push_args)that);
21571 return false;
21572 }
21573
21574 public boolean equals(push_args that) {
21575 if (that == null)
21576 return false;
21577
21578 boolean this_present_projectName = true && this.isSetProjectName();
21579 boolean that_present_projectName = true && that.isSetProjectName();
21580 if (this_present_projectName || that_present_projectName) {
21581 if (!(this_present_projectName && that_present_projectName))
21582 return false;
21583 if (!this.projectName.equals(that.projectName))
21584 return false;
21585 }
21586
21587 boolean this_present_repositoryName = true && this.isSetRepositoryName();
21588 boolean that_present_repositoryName = true && that.isSetRepositoryName();
21589 if (this_present_repositoryName || that_present_repositoryName) {
21590 if (!(this_present_repositoryName && that_present_repositoryName))
21591 return false;
21592 if (!this.repositoryName.equals(that.repositoryName))
21593 return false;
21594 }
21595
21596 boolean this_present_baseRevision = true && this.isSetBaseRevision();
21597 boolean that_present_baseRevision = true && that.isSetBaseRevision();
21598 if (this_present_baseRevision || that_present_baseRevision) {
21599 if (!(this_present_baseRevision && that_present_baseRevision))
21600 return false;
21601 if (!this.baseRevision.equals(that.baseRevision))
21602 return false;
21603 }
21604
21605 boolean this_present_author = true && this.isSetAuthor();
21606 boolean that_present_author = true && that.isSetAuthor();
21607 if (this_present_author || that_present_author) {
21608 if (!(this_present_author && that_present_author))
21609 return false;
21610 if (!this.author.equals(that.author))
21611 return false;
21612 }
21613
21614 boolean this_present_summary = true && this.isSetSummary();
21615 boolean that_present_summary = true && that.isSetSummary();
21616 if (this_present_summary || that_present_summary) {
21617 if (!(this_present_summary && that_present_summary))
21618 return false;
21619 if (!this.summary.equals(that.summary))
21620 return false;
21621 }
21622
21623 boolean this_present_detail = true && this.isSetDetail();
21624 boolean that_present_detail = true && that.isSetDetail();
21625 if (this_present_detail || that_present_detail) {
21626 if (!(this_present_detail && that_present_detail))
21627 return false;
21628 if (!this.detail.equals(that.detail))
21629 return false;
21630 }
21631
21632 boolean this_present_changes = true && this.isSetChanges();
21633 boolean that_present_changes = true && that.isSetChanges();
21634 if (this_present_changes || that_present_changes) {
21635 if (!(this_present_changes && that_present_changes))
21636 return false;
21637 if (!this.changes.equals(that.changes))
21638 return false;
21639 }
21640
21641 return true;
21642 }
21643
21644 @Override
21645 public int hashCode() {
21646 List<Object> list = new ArrayList<Object>();
21647
21648 boolean present_projectName = true && (isSetProjectName());
21649 list.add(present_projectName);
21650 if (present_projectName)
21651 list.add(projectName);
21652
21653 boolean present_repositoryName = true && (isSetRepositoryName());
21654 list.add(present_repositoryName);
21655 if (present_repositoryName)
21656 list.add(repositoryName);
21657
21658 boolean present_baseRevision = true && (isSetBaseRevision());
21659 list.add(present_baseRevision);
21660 if (present_baseRevision)
21661 list.add(baseRevision);
21662
21663 boolean present_author = true && (isSetAuthor());
21664 list.add(present_author);
21665 if (present_author)
21666 list.add(author);
21667
21668 boolean present_summary = true && (isSetSummary());
21669 list.add(present_summary);
21670 if (present_summary)
21671 list.add(summary);
21672
21673 boolean present_detail = true && (isSetDetail());
21674 list.add(present_detail);
21675 if (present_detail)
21676 list.add(detail);
21677
21678 boolean present_changes = true && (isSetChanges());
21679 list.add(present_changes);
21680 if (present_changes)
21681 list.add(changes);
21682
21683 return list.hashCode();
21684 }
21685
21686 @Override
21687 public int compareTo(push_args other) {
21688 if (!getClass().equals(other.getClass())) {
21689 return getClass().getName().compareTo(other.getClass().getName());
21690 }
21691
21692 int lastComparison = 0;
21693
21694 lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName());
21695 if (lastComparison != 0) {
21696 return lastComparison;
21697 }
21698 if (isSetProjectName()) {
21699 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName);
21700 if (lastComparison != 0) {
21701 return lastComparison;
21702 }
21703 }
21704 lastComparison = Boolean.valueOf(isSetRepositoryName()).compareTo(other.isSetRepositoryName());
21705 if (lastComparison != 0) {
21706 return lastComparison;
21707 }
21708 if (isSetRepositoryName()) {
21709 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.repositoryName, other.repositoryName);
21710 if (lastComparison != 0) {
21711 return lastComparison;
21712 }
21713 }
21714 lastComparison = Boolean.valueOf(isSetBaseRevision()).compareTo(other.isSetBaseRevision());
21715 if (lastComparison != 0) {
21716 return lastComparison;
21717 }
21718 if (isSetBaseRevision()) {
21719 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.baseRevision, other.baseRevision);
21720 if (lastComparison != 0) {
21721 return lastComparison;
21722 }
21723 }
21724 lastComparison = Boolean.valueOf(isSetAuthor()).compareTo(other.isSetAuthor());
21725 if (lastComparison != 0) {
21726 return lastComparison;
21727 }
21728 if (isSetAuthor()) {
21729 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.author, other.author);
21730 if (lastComparison != 0) {
21731 return lastComparison;
21732 }
21733 }
21734 lastComparison = Boolean.valueOf(isSetSummary()).compareTo(other.isSetSummary());
21735 if (lastComparison != 0) {
21736 return lastComparison;
21737 }
21738 if (isSetSummary()) {
21739 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.summary, other.summary);
21740 if (lastComparison != 0) {
21741 return lastComparison;
21742 }
21743 }
21744 lastComparison = Boolean.valueOf(isSetDetail()).compareTo(other.isSetDetail());
21745 if (lastComparison != 0) {
21746 return lastComparison;
21747 }
21748 if (isSetDetail()) {
21749 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.detail, other.detail);
21750 if (lastComparison != 0) {
21751 return lastComparison;
21752 }
21753 }
21754 lastComparison = Boolean.valueOf(isSetChanges()).compareTo(other.isSetChanges());
21755 if (lastComparison != 0) {
21756 return lastComparison;
21757 }
21758 if (isSetChanges()) {
21759 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.changes, other.changes);
21760 if (lastComparison != 0) {
21761 return lastComparison;
21762 }
21763 }
21764 return 0;
21765 }
21766
21767 public _Fields fieldForId(int fieldId) {
21768 return _Fields.findByThriftId(fieldId);
21769 }
21770
21771 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21772 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
21773 }
21774
21775 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21776 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
21777 }
21778
21779 @Override
21780 public String toString() {
21781 StringBuilder sb = new StringBuilder("push_args(");
21782 boolean first = true;
21783
21784 sb.append("projectName:");
21785 if (this.projectName == null) {
21786 sb.append("null");
21787 } else {
21788 sb.append(this.projectName);
21789 }
21790 first = false;
21791 if (!first) sb.append(", ");
21792 sb.append("repositoryName:");
21793 if (this.repositoryName == null) {
21794 sb.append("null");
21795 } else {
21796 sb.append(this.repositoryName);
21797 }
21798 first = false;
21799 if (!first) sb.append(", ");
21800 sb.append("baseRevision:");
21801 if (this.baseRevision == null) {
21802 sb.append("null");
21803 } else {
21804 sb.append(this.baseRevision);
21805 }
21806 first = false;
21807 if (!first) sb.append(", ");
21808 sb.append("author:");
21809 if (this.author == null) {
21810 sb.append("null");
21811 } else {
21812 sb.append(this.author);
21813 }
21814 first = false;
21815 if (!first) sb.append(", ");
21816 sb.append("summary:");
21817 if (this.summary == null) {
21818 sb.append("null");
21819 } else {
21820 sb.append(this.summary);
21821 }
21822 first = false;
21823 if (!first) sb.append(", ");
21824 sb.append("detail:");
21825 if (this.detail == null) {
21826 sb.append("null");
21827 } else {
21828 sb.append(this.detail);
21829 }
21830 first = false;
21831 if (!first) sb.append(", ");
21832 sb.append("changes:");
21833 if (this.changes == null) {
21834 sb.append("null");
21835 } else {
21836 sb.append(this.changes);
21837 }
21838 first = false;
21839 sb.append(")");
21840 return sb.toString();
21841 }
21842
21843 public void validate() throws org.apache.thrift.TException {
21844
21845
21846 if (baseRevision != null) {
21847 baseRevision.validate();
21848 }
21849 if (author != null) {
21850 author.validate();
21851 }
21852 if (detail != null) {
21853 detail.validate();
21854 }
21855 }
21856
21857 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21858 try {
21859 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21860 } catch (org.apache.thrift.TException te) {
21861 throw new java.io.IOException(te);
21862 }
21863 }
21864
21865 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21866 try {
21867 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21868 } catch (org.apache.thrift.TException te) {
21869 throw new java.io.IOException(te);
21870 }
21871 }
21872
21873 private static class push_argsStandardSchemeFactory implements SchemeFactory {
21874 public push_argsStandardScheme getScheme() {
21875 return new push_argsStandardScheme();
21876 }
21877 }
21878
21879 private static class push_argsStandardScheme extends StandardScheme<push_args> {
21880
21881 public void read(org.apache.thrift.protocol.TProtocol iprot, push_args struct) throws org.apache.thrift.TException {
21882 org.apache.thrift.protocol.TField schemeField;
21883 iprot.readStructBegin();
21884 while (true)
21885 {
21886 schemeField = iprot.readFieldBegin();
21887 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
21888 break;
21889 }
21890 switch (schemeField.id) {
21891 case 1:
21892 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
21893 struct.projectName = iprot.readString();
21894 struct.setProjectNameIsSet(true);
21895 } else {
21896 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
21897 }
21898 break;
21899 case 2:
21900 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
21901 struct.repositoryName = iprot.readString();
21902 struct.setRepositoryNameIsSet(true);
21903 } else {
21904 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
21905 }
21906 break;
21907 case 3:
21908 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
21909 struct.baseRevision = new Revision();
21910 struct.baseRevision.read(iprot);
21911 struct.setBaseRevisionIsSet(true);
21912 } else {
21913 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
21914 }
21915 break;
21916 case 4:
21917 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
21918 struct.author = new Author();
21919 struct.author.read(iprot);
21920 struct.setAuthorIsSet(true);
21921 } else {
21922 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
21923 }
21924 break;
21925 case 5:
21926 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
21927 struct.summary = iprot.readString();
21928 struct.setSummaryIsSet(true);
21929 } else {
21930 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
21931 }
21932 break;
21933 case 6:
21934 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
21935 struct.detail = new Comment();
21936 struct.detail.read(iprot);
21937 struct.setDetailIsSet(true);
21938 } else {
21939 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
21940 }
21941 break;
21942 case 7:
21943 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
21944 {
21945 org.apache.thrift.protocol.TList _list152 = iprot.readListBegin();
21946 struct.changes = new ArrayList<Change>(_list152.size);
21947 Change _elem153;
21948 for (int _i154 = 0; _i154 < _list152.size; ++_i154)
21949 {
21950 _elem153 = new Change();
21951 _elem153.read(iprot);
21952 struct.changes.add(_elem153);
21953 }
21954 iprot.readListEnd();
21955 }
21956 struct.setChangesIsSet(true);
21957 } else {
21958 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
21959 }
21960 break;
21961 default:
21962 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
21963 }
21964 iprot.readFieldEnd();
21965 }
21966 iprot.readStructEnd();
21967
21968
21969 struct.validate();
21970 }
21971
21972 public void write(org.apache.thrift.protocol.TProtocol oprot, push_args struct) throws org.apache.thrift.TException {
21973 struct.validate();
21974
21975 oprot.writeStructBegin(STRUCT_DESC);
21976 if (struct.projectName != null) {
21977 oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC);
21978 oprot.writeString(struct.projectName);
21979 oprot.writeFieldEnd();
21980 }
21981 if (struct.repositoryName != null) {
21982 oprot.writeFieldBegin(REPOSITORY_NAME_FIELD_DESC);
21983 oprot.writeString(struct.repositoryName);
21984 oprot.writeFieldEnd();
21985 }
21986 if (struct.baseRevision != null) {
21987 oprot.writeFieldBegin(BASE_REVISION_FIELD_DESC);
21988 struct.baseRevision.write(oprot);
21989 oprot.writeFieldEnd();
21990 }
21991 if (struct.author != null) {
21992 oprot.writeFieldBegin(AUTHOR_FIELD_DESC);
21993 struct.author.write(oprot);
21994 oprot.writeFieldEnd();
21995 }
21996 if (struct.summary != null) {
21997 oprot.writeFieldBegin(SUMMARY_FIELD_DESC);
21998 oprot.writeString(struct.summary);
21999 oprot.writeFieldEnd();
22000 }
22001 if (struct.detail != null) {
22002 oprot.writeFieldBegin(DETAIL_FIELD_DESC);
22003 struct.detail.write(oprot);
22004 oprot.writeFieldEnd();
22005 }
22006 if (struct.changes != null) {
22007 oprot.writeFieldBegin(CHANGES_FIELD_DESC);
22008 {
22009 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.changes.size()));
22010 for (Change _iter155 : struct.changes)
22011 {
22012 _iter155.write(oprot);
22013 }
22014 oprot.writeListEnd();
22015 }
22016 oprot.writeFieldEnd();
22017 }
22018 oprot.writeFieldStop();
22019 oprot.writeStructEnd();
22020 }
22021
22022 }
22023
22024 private static class push_argsTupleSchemeFactory implements SchemeFactory {
22025 public push_argsTupleScheme getScheme() {
22026 return new push_argsTupleScheme();
22027 }
22028 }
22029
22030 private static class push_argsTupleScheme extends TupleScheme<push_args> {
22031
22032 @Override
22033 public void write(org.apache.thrift.protocol.TProtocol prot, push_args struct) throws org.apache.thrift.TException {
22034 TTupleProtocol oprot = (TTupleProtocol) prot;
22035 BitSet optionals = new BitSet();
22036 if (struct.isSetProjectName()) {
22037 optionals.set(0);
22038 }
22039 if (struct.isSetRepositoryName()) {
22040 optionals.set(1);
22041 }
22042 if (struct.isSetBaseRevision()) {
22043 optionals.set(2);
22044 }
22045 if (struct.isSetAuthor()) {
22046 optionals.set(3);
22047 }
22048 if (struct.isSetSummary()) {
22049 optionals.set(4);
22050 }
22051 if (struct.isSetDetail()) {
22052 optionals.set(5);
22053 }
22054 if (struct.isSetChanges()) {
22055 optionals.set(6);
22056 }
22057 oprot.writeBitSet(optionals, 7);
22058 if (struct.isSetProjectName()) {
22059 oprot.writeString(struct.projectName);
22060 }
22061 if (struct.isSetRepositoryName()) {
22062 oprot.writeString(struct.repositoryName);
22063 }
22064 if (struct.isSetBaseRevision()) {
22065 struct.baseRevision.write(oprot);
22066 }
22067 if (struct.isSetAuthor()) {
22068 struct.author.write(oprot);
22069 }
22070 if (struct.isSetSummary()) {
22071 oprot.writeString(struct.summary);
22072 }
22073 if (struct.isSetDetail()) {
22074 struct.detail.write(oprot);
22075 }
22076 if (struct.isSetChanges()) {
22077 {
22078 oprot.writeI32(struct.changes.size());
22079 for (Change _iter156 : struct.changes)
22080 {
22081 _iter156.write(oprot);
22082 }
22083 }
22084 }
22085 }
22086
22087 @Override
22088 public void read(org.apache.thrift.protocol.TProtocol prot, push_args struct) throws org.apache.thrift.TException {
22089 TTupleProtocol iprot = (TTupleProtocol) prot;
22090 BitSet incoming = iprot.readBitSet(7);
22091 if (incoming.get(0)) {
22092 struct.projectName = iprot.readString();
22093 struct.setProjectNameIsSet(true);
22094 }
22095 if (incoming.get(1)) {
22096 struct.repositoryName = iprot.readString();
22097 struct.setRepositoryNameIsSet(true);
22098 }
22099 if (incoming.get(2)) {
22100 struct.baseRevision = new Revision();
22101 struct.baseRevision.read(iprot);
22102 struct.setBaseRevisionIsSet(true);
22103 }
22104 if (incoming.get(3)) {
22105 struct.author = new Author();
22106 struct.author.read(iprot);
22107 struct.setAuthorIsSet(true);
22108 }
22109 if (incoming.get(4)) {
22110 struct.summary = iprot.readString();
22111 struct.setSummaryIsSet(true);
22112 }
22113 if (incoming.get(5)) {
22114 struct.detail = new Comment();
22115 struct.detail.read(iprot);
22116 struct.setDetailIsSet(true);
22117 }
22118 if (incoming.get(6)) {
22119 {
22120 org.apache.thrift.protocol.TList _list157 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
22121 struct.changes = new ArrayList<Change>(_list157.size);
22122 Change _elem158;
22123 for (int _i159 = 0; _i159 < _list157.size; ++_i159)
22124 {
22125 _elem158 = new Change();
22126 _elem158.read(iprot);
22127 struct.changes.add(_elem158);
22128 }
22129 }
22130 struct.setChangesIsSet(true);
22131 }
22132 }
22133 }
22134
22135 }
22136
22137 public static class push_result implements org.apache.thrift.TBase<push_result, push_result._Fields>, java.io.Serializable, Cloneable, Comparable<push_result> {
22138 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("push_result");
22139
22140 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
22141 private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
22142
22143 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
22144 static {
22145 schemes.put(StandardScheme.class, new push_resultStandardSchemeFactory());
22146 schemes.put(TupleScheme.class, new push_resultTupleSchemeFactory());
22147 }
22148
22149 public Commit success;
22150 public CentralDogmaException e;
22151
22152
22153 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22154 SUCCESS((short)0, "success"),
22155 E((short)1, "e");
22156
22157 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22158
22159 static {
22160 for (_Fields field : EnumSet.allOf(_Fields.class)) {
22161 byName.put(field.getFieldName(), field);
22162 }
22163 }
22164
22165
22166
22167
22168 public static _Fields findByThriftId(int fieldId) {
22169 switch(fieldId) {
22170 case 0:
22171 return SUCCESS;
22172 case 1:
22173 return E;
22174 default:
22175 return null;
22176 }
22177 }
22178
22179
22180
22181
22182
22183 public static _Fields findByThriftIdOrThrow(int fieldId) {
22184 _Fields fields = findByThriftId(fieldId);
22185 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22186 return fields;
22187 }
22188
22189
22190
22191
22192 public static _Fields findByName(String name) {
22193 return byName.get(name);
22194 }
22195
22196 private final short _thriftId;
22197 private final String _fieldName;
22198
22199 _Fields(short thriftId, String fieldName) {
22200 _thriftId = thriftId;
22201 _fieldName = fieldName;
22202 }
22203
22204 public short getThriftFieldId() {
22205 return _thriftId;
22206 }
22207
22208 public String getFieldName() {
22209 return _fieldName;
22210 }
22211 }
22212
22213
22214 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
22215 static {
22216 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22217 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
22218 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Commit.class)));
22219 tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
22220 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
22221 metaDataMap = Collections.unmodifiableMap(tmpMap);
22222 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(push_result.class, metaDataMap);
22223 }
22224
22225 public push_result() {
22226 }
22227
22228 public push_result(
22229 Commit success,
22230 CentralDogmaException e)
22231 {
22232 this();
22233 this.success = success;
22234 this.e = e;
22235 }
22236
22237
22238
22239
22240 public push_result(push_result other) {
22241 if (other.isSetSuccess()) {
22242 this.success = new Commit(other.success);
22243 }
22244 if (other.isSetE()) {
22245 this.e = new CentralDogmaException(other.e);
22246 }
22247 }
22248
22249 public push_result deepCopy() {
22250 return new push_result(this);
22251 }
22252
22253 @Override
22254 public void clear() {
22255 this.success = null;
22256 this.e = null;
22257 }
22258
22259 public Commit getSuccess() {
22260 return this.success;
22261 }
22262
22263 public push_result setSuccess(Commit success) {
22264 this.success = success;
22265 return this;
22266 }
22267
22268 public void unsetSuccess() {
22269 this.success = null;
22270 }
22271
22272
22273 public boolean isSetSuccess() {
22274 return this.success != null;
22275 }
22276
22277 public void setSuccessIsSet(boolean value) {
22278 if (!value) {
22279 this.success = null;
22280 }
22281 }
22282
22283 public CentralDogmaException getE() {
22284 return this.e;
22285 }
22286
22287 public push_result setE(CentralDogmaException e) {
22288 this.e = e;
22289 return this;
22290 }
22291
22292 public void unsetE() {
22293 this.e = null;
22294 }
22295
22296
22297 public boolean isSetE() {
22298 return this.e != null;
22299 }
22300
22301 public void setEIsSet(boolean value) {
22302 if (!value) {
22303 this.e = null;
22304 }
22305 }
22306
22307 public void setFieldValue(_Fields field, Object value) {
22308 switch (field) {
22309 case SUCCESS:
22310 if (value == null) {
22311 unsetSuccess();
22312 } else {
22313 setSuccess((Commit)value);
22314 }
22315 break;
22316
22317 case E:
22318 if (value == null) {
22319 unsetE();
22320 } else {
22321 setE((CentralDogmaException)value);
22322 }
22323 break;
22324
22325 }
22326 }
22327
22328 public Object getFieldValue(_Fields field) {
22329 switch (field) {
22330 case SUCCESS:
22331 return getSuccess();
22332
22333 case E:
22334 return getE();
22335
22336 }
22337 throw new IllegalStateException();
22338 }
22339
22340
22341 public boolean isSet(_Fields field) {
22342 if (field == null) {
22343 throw new IllegalArgumentException();
22344 }
22345
22346 switch (field) {
22347 case SUCCESS:
22348 return isSetSuccess();
22349 case E:
22350 return isSetE();
22351 }
22352 throw new IllegalStateException();
22353 }
22354
22355 @Override
22356 public boolean equals(Object that) {
22357 if (that == null)
22358 return false;
22359 if (that instanceof push_result)
22360 return this.equals((push_result)that);
22361 return false;
22362 }
22363
22364 public boolean equals(push_result that) {
22365 if (that == null)
22366 return false;
22367
22368 boolean this_present_success = true && this.isSetSuccess();
22369 boolean that_present_success = true && that.isSetSuccess();
22370 if (this_present_success || that_present_success) {
22371 if (!(this_present_success && that_present_success))
22372 return false;
22373 if (!this.success.equals(that.success))
22374 return false;
22375 }
22376
22377 boolean this_present_e = true && this.isSetE();
22378 boolean that_present_e = true && that.isSetE();
22379 if (this_present_e || that_present_e) {
22380 if (!(this_present_e && that_present_e))
22381 return false;
22382 if (!this.e.equals(that.e))
22383 return false;
22384 }
22385
22386 return true;
22387 }
22388
22389 @Override
22390 public int hashCode() {
22391 List<Object> list = new ArrayList<Object>();
22392
22393 boolean present_success = true && (isSetSuccess());
22394 list.add(present_success);
22395 if (present_success)
22396 list.add(success);
22397
22398 boolean present_e = true && (isSetE());
22399 list.add(present_e);
22400 if (present_e)
22401 list.add(e);
22402
22403 return list.hashCode();
22404 }
22405
22406 @Override
22407 public int compareTo(push_result other) {
22408 if (!getClass().equals(other.getClass())) {
22409 return getClass().getName().compareTo(other.getClass().getName());
22410 }
22411
22412 int lastComparison = 0;
22413
22414 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
22415 if (lastComparison != 0) {
22416 return lastComparison;
22417 }
22418 if (isSetSuccess()) {
22419 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
22420 if (lastComparison != 0) {
22421 return lastComparison;
22422 }
22423 }
22424 lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE());
22425 if (lastComparison != 0) {
22426 return lastComparison;
22427 }
22428 if (isSetE()) {
22429 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e);
22430 if (lastComparison != 0) {
22431 return lastComparison;
22432 }
22433 }
22434 return 0;
22435 }
22436
22437 public _Fields fieldForId(int fieldId) {
22438 return _Fields.findByThriftId(fieldId);
22439 }
22440
22441 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22442 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
22443 }
22444
22445 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22446 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
22447 }
22448
22449 @Override
22450 public String toString() {
22451 StringBuilder sb = new StringBuilder("push_result(");
22452 boolean first = true;
22453
22454 sb.append("success:");
22455 if (this.success == null) {
22456 sb.append("null");
22457 } else {
22458 sb.append(this.success);
22459 }
22460 first = false;
22461 if (!first) sb.append(", ");
22462 sb.append("e:");
22463 if (this.e == null) {
22464 sb.append("null");
22465 } else {
22466 sb.append(this.e);
22467 }
22468 first = false;
22469 sb.append(")");
22470 return sb.toString();
22471 }
22472
22473 public void validate() throws org.apache.thrift.TException {
22474
22475
22476 if (success != null) {
22477 success.validate();
22478 }
22479 }
22480
22481 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22482 try {
22483 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22484 } catch (org.apache.thrift.TException te) {
22485 throw new java.io.IOException(te);
22486 }
22487 }
22488
22489 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22490 try {
22491 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22492 } catch (org.apache.thrift.TException te) {
22493 throw new java.io.IOException(te);
22494 }
22495 }
22496
22497 private static class push_resultStandardSchemeFactory implements SchemeFactory {
22498 public push_resultStandardScheme getScheme() {
22499 return new push_resultStandardScheme();
22500 }
22501 }
22502
22503 private static class push_resultStandardScheme extends StandardScheme<push_result> {
22504
22505 public void read(org.apache.thrift.protocol.TProtocol iprot, push_result struct) throws org.apache.thrift.TException {
22506 org.apache.thrift.protocol.TField schemeField;
22507 iprot.readStructBegin();
22508 while (true)
22509 {
22510 schemeField = iprot.readFieldBegin();
22511 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
22512 break;
22513 }
22514 switch (schemeField.id) {
22515 case 0:
22516 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
22517 struct.success = new Commit();
22518 struct.success.read(iprot);
22519 struct.setSuccessIsSet(true);
22520 } else {
22521 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
22522 }
22523 break;
22524 case 1:
22525 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
22526 struct.e = new CentralDogmaException();
22527 struct.e.read(iprot);
22528 struct.setEIsSet(true);
22529 } else {
22530 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
22531 }
22532 break;
22533 default:
22534 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
22535 }
22536 iprot.readFieldEnd();
22537 }
22538 iprot.readStructEnd();
22539
22540
22541 struct.validate();
22542 }
22543
22544 public void write(org.apache.thrift.protocol.TProtocol oprot, push_result struct) throws org.apache.thrift.TException {
22545 struct.validate();
22546
22547 oprot.writeStructBegin(STRUCT_DESC);
22548 if (struct.success != null) {
22549 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
22550 struct.success.write(oprot);
22551 oprot.writeFieldEnd();
22552 }
22553 if (struct.e != null) {
22554 oprot.writeFieldBegin(E_FIELD_DESC);
22555 struct.e.write(oprot);
22556 oprot.writeFieldEnd();
22557 }
22558 oprot.writeFieldStop();
22559 oprot.writeStructEnd();
22560 }
22561
22562 }
22563
22564 private static class push_resultTupleSchemeFactory implements SchemeFactory {
22565 public push_resultTupleScheme getScheme() {
22566 return new push_resultTupleScheme();
22567 }
22568 }
22569
22570 private static class push_resultTupleScheme extends TupleScheme<push_result> {
22571
22572 @Override
22573 public void write(org.apache.thrift.protocol.TProtocol prot, push_result struct) throws org.apache.thrift.TException {
22574 TTupleProtocol oprot = (TTupleProtocol) prot;
22575 BitSet optionals = new BitSet();
22576 if (struct.isSetSuccess()) {
22577 optionals.set(0);
22578 }
22579 if (struct.isSetE()) {
22580 optionals.set(1);
22581 }
22582 oprot.writeBitSet(optionals, 2);
22583 if (struct.isSetSuccess()) {
22584 struct.success.write(oprot);
22585 }
22586 if (struct.isSetE()) {
22587 struct.e.write(oprot);
22588 }
22589 }
22590
22591 @Override
22592 public void read(org.apache.thrift.protocol.TProtocol prot, push_result struct) throws org.apache.thrift.TException {
22593 TTupleProtocol iprot = (TTupleProtocol) prot;
22594 BitSet incoming = iprot.readBitSet(2);
22595 if (incoming.get(0)) {
22596 struct.success = new Commit();
22597 struct.success.read(iprot);
22598 struct.setSuccessIsSet(true);
22599 }
22600 if (incoming.get(1)) {
22601 struct.e = new CentralDogmaException();
22602 struct.e.read(iprot);
22603 struct.setEIsSet(true);
22604 }
22605 }
22606 }
22607
22608 }
22609
22610 public static class getFile_args implements org.apache.thrift.TBase<getFile_args, getFile_args._Fields>, java.io.Serializable, Cloneable, Comparable<getFile_args> {
22611 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFile_args");
22612
22613 private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)1);
22614 private static final org.apache.thrift.protocol.TField REPOSITORY_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("repositoryName", org.apache.thrift.protocol.TType.STRING, (short)2);
22615 private static final org.apache.thrift.protocol.TField REVISION_FIELD_DESC = new org.apache.thrift.protocol.TField("revision", org.apache.thrift.protocol.TType.STRUCT, (short)3);
22616 private static final org.apache.thrift.protocol.TField QUERY_FIELD_DESC = new org.apache.thrift.protocol.TField("query", org.apache.thrift.protocol.TType.STRUCT, (short)4);
22617
22618 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
22619 static {
22620 schemes.put(StandardScheme.class, new getFile_argsStandardSchemeFactory());
22621 schemes.put(TupleScheme.class, new getFile_argsTupleSchemeFactory());
22622 }
22623
22624 public String projectName;
22625 public String repositoryName;
22626 public Revision revision;
22627 public Query query;
22628
22629
22630 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22631 PROJECT_NAME((short)1, "projectName"),
22632 REPOSITORY_NAME((short)2, "repositoryName"),
22633 REVISION((short)3, "revision"),
22634 QUERY((short)4, "query");
22635
22636 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22637
22638 static {
22639 for (_Fields field : EnumSet.allOf(_Fields.class)) {
22640 byName.put(field.getFieldName(), field);
22641 }
22642 }
22643
22644
22645
22646
22647 public static _Fields findByThriftId(int fieldId) {
22648 switch(fieldId) {
22649 case 1:
22650 return PROJECT_NAME;
22651 case 2:
22652 return REPOSITORY_NAME;
22653 case 3:
22654 return REVISION;
22655 case 4:
22656 return QUERY;
22657 default:
22658 return null;
22659 }
22660 }
22661
22662
22663
22664
22665
22666 public static _Fields findByThriftIdOrThrow(int fieldId) {
22667 _Fields fields = findByThriftId(fieldId);
22668 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22669 return fields;
22670 }
22671
22672
22673
22674
22675 public static _Fields findByName(String name) {
22676 return byName.get(name);
22677 }
22678
22679 private final short _thriftId;
22680 private final String _fieldName;
22681
22682 _Fields(short thriftId, String fieldName) {
22683 _thriftId = thriftId;
22684 _fieldName = fieldName;
22685 }
22686
22687 public short getThriftFieldId() {
22688 return _thriftId;
22689 }
22690
22691 public String getFieldName() {
22692 return _fieldName;
22693 }
22694 }
22695
22696
22697 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
22698 static {
22699 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22700 tmpMap.put(_Fields.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", org.apache.thrift.TFieldRequirementType.DEFAULT,
22701 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
22702 tmpMap.put(_Fields.REPOSITORY_NAME, new org.apache.thrift.meta_data.FieldMetaData("repositoryName", org.apache.thrift.TFieldRequirementType.DEFAULT,
22703 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
22704 tmpMap.put(_Fields.REVISION, new org.apache.thrift.meta_data.FieldMetaData("revision", org.apache.thrift.TFieldRequirementType.DEFAULT,
22705 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Revision.class)));
22706 tmpMap.put(_Fields.QUERY, new org.apache.thrift.meta_data.FieldMetaData("query", org.apache.thrift.TFieldRequirementType.DEFAULT,
22707 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Query.class)));
22708 metaDataMap = Collections.unmodifiableMap(tmpMap);
22709 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFile_args.class, metaDataMap);
22710 }
22711
22712 public getFile_args() {
22713 }
22714
22715 public getFile_args(
22716 String projectName,
22717 String repositoryName,
22718 Revision revision,
22719 Query query)
22720 {
22721 this();
22722 this.projectName = projectName;
22723 this.repositoryName = repositoryName;
22724 this.revision = revision;
22725 this.query = query;
22726 }
22727
22728
22729
22730
22731 public getFile_args(getFile_args other) {
22732 if (other.isSetProjectName()) {
22733 this.projectName = other.projectName;
22734 }
22735 if (other.isSetRepositoryName()) {
22736 this.repositoryName = other.repositoryName;
22737 }
22738 if (other.isSetRevision()) {
22739 this.revision = new Revision(other.revision);
22740 }
22741 if (other.isSetQuery()) {
22742 this.query = new Query(other.query);
22743 }
22744 }
22745
22746 public getFile_args deepCopy() {
22747 return new getFile_args(this);
22748 }
22749
22750 @Override
22751 public void clear() {
22752 this.projectName = null;
22753 this.repositoryName = null;
22754 this.revision = null;
22755 this.query = null;
22756 }
22757
22758 public String getProjectName() {
22759 return this.projectName;
22760 }
22761
22762 public getFile_args setProjectName(String projectName) {
22763 this.projectName = projectName;
22764 return this;
22765 }
22766
22767 public void unsetProjectName() {
22768 this.projectName = null;
22769 }
22770
22771
22772 public boolean isSetProjectName() {
22773 return this.projectName != null;
22774 }
22775
22776 public void setProjectNameIsSet(boolean value) {
22777 if (!value) {
22778 this.projectName = null;
22779 }
22780 }
22781
22782 public String getRepositoryName() {
22783 return this.repositoryName;
22784 }
22785
22786 public getFile_args setRepositoryName(String repositoryName) {
22787 this.repositoryName = repositoryName;
22788 return this;
22789 }
22790
22791 public void unsetRepositoryName() {
22792 this.repositoryName = null;
22793 }
22794
22795
22796 public boolean isSetRepositoryName() {
22797 return this.repositoryName != null;
22798 }
22799
22800 public void setRepositoryNameIsSet(boolean value) {
22801 if (!value) {
22802 this.repositoryName = null;
22803 }
22804 }
22805
22806 public Revision getRevision() {
22807 return this.revision;
22808 }
22809
22810 public getFile_args setRevision(Revision revision) {
22811 this.revision = revision;
22812 return this;
22813 }
22814
22815 public void unsetRevision() {
22816 this.revision = null;
22817 }
22818
22819
22820 public boolean isSetRevision() {
22821 return this.revision != null;
22822 }
22823
22824 public void setRevisionIsSet(boolean value) {
22825 if (!value) {
22826 this.revision = null;
22827 }
22828 }
22829
22830 public Query getQuery() {
22831 return this.query;
22832 }
22833
22834 public getFile_args setQuery(Query query) {
22835 this.query = query;
22836 return this;
22837 }
22838
22839 public void unsetQuery() {
22840 this.query = null;
22841 }
22842
22843
22844 public boolean isSetQuery() {
22845 return this.query != null;
22846 }
22847
22848 public void setQueryIsSet(boolean value) {
22849 if (!value) {
22850 this.query = null;
22851 }
22852 }
22853
22854 public void setFieldValue(_Fields field, Object value) {
22855 switch (field) {
22856 case PROJECT_NAME:
22857 if (value == null) {
22858 unsetProjectName();
22859 } else {
22860 setProjectName((String)value);
22861 }
22862 break;
22863
22864 case REPOSITORY_NAME:
22865 if (value == null) {
22866 unsetRepositoryName();
22867 } else {
22868 setRepositoryName((String)value);
22869 }
22870 break;
22871
22872 case REVISION:
22873 if (value == null) {
22874 unsetRevision();
22875 } else {
22876 setRevision((Revision)value);
22877 }
22878 break;
22879
22880 case QUERY:
22881 if (value == null) {
22882 unsetQuery();
22883 } else {
22884 setQuery((Query)value);
22885 }
22886 break;
22887
22888 }
22889 }
22890
22891 public Object getFieldValue(_Fields field) {
22892 switch (field) {
22893 case PROJECT_NAME:
22894 return getProjectName();
22895
22896 case REPOSITORY_NAME:
22897 return getRepositoryName();
22898
22899 case REVISION:
22900 return getRevision();
22901
22902 case QUERY:
22903 return getQuery();
22904
22905 }
22906 throw new IllegalStateException();
22907 }
22908
22909
22910 public boolean isSet(_Fields field) {
22911 if (field == null) {
22912 throw new IllegalArgumentException();
22913 }
22914
22915 switch (field) {
22916 case PROJECT_NAME:
22917 return isSetProjectName();
22918 case REPOSITORY_NAME:
22919 return isSetRepositoryName();
22920 case REVISION:
22921 return isSetRevision();
22922 case QUERY:
22923 return isSetQuery();
22924 }
22925 throw new IllegalStateException();
22926 }
22927
22928 @Override
22929 public boolean equals(Object that) {
22930 if (that == null)
22931 return false;
22932 if (that instanceof getFile_args)
22933 return this.equals((getFile_args)that);
22934 return false;
22935 }
22936
22937 public boolean equals(getFile_args that) {
22938 if (that == null)
22939 return false;
22940
22941 boolean this_present_projectName = true && this.isSetProjectName();
22942 boolean that_present_projectName = true && that.isSetProjectName();
22943 if (this_present_projectName || that_present_projectName) {
22944 if (!(this_present_projectName && that_present_projectName))
22945 return false;
22946 if (!this.projectName.equals(that.projectName))
22947 return false;
22948 }
22949
22950 boolean this_present_repositoryName = true && this.isSetRepositoryName();
22951 boolean that_present_repositoryName = true && that.isSetRepositoryName();
22952 if (this_present_repositoryName || that_present_repositoryName) {
22953 if (!(this_present_repositoryName && that_present_repositoryName))
22954 return false;
22955 if (!this.repositoryName.equals(that.repositoryName))
22956 return false;
22957 }
22958
22959 boolean this_present_revision = true && this.isSetRevision();
22960 boolean that_present_revision = true && that.isSetRevision();
22961 if (this_present_revision || that_present_revision) {
22962 if (!(this_present_revision && that_present_revision))
22963 return false;
22964 if (!this.revision.equals(that.revision))
22965 return false;
22966 }
22967
22968 boolean this_present_query = true && this.isSetQuery();
22969 boolean that_present_query = true && that.isSetQuery();
22970 if (this_present_query || that_present_query) {
22971 if (!(this_present_query && that_present_query))
22972 return false;
22973 if (!this.query.equals(that.query))
22974 return false;
22975 }
22976
22977 return true;
22978 }
22979
22980 @Override
22981 public int hashCode() {
22982 List<Object> list = new ArrayList<Object>();
22983
22984 boolean present_projectName = true && (isSetProjectName());
22985 list.add(present_projectName);
22986 if (present_projectName)
22987 list.add(projectName);
22988
22989 boolean present_repositoryName = true && (isSetRepositoryName());
22990 list.add(present_repositoryName);
22991 if (present_repositoryName)
22992 list.add(repositoryName);
22993
22994 boolean present_revision = true && (isSetRevision());
22995 list.add(present_revision);
22996 if (present_revision)
22997 list.add(revision);
22998
22999 boolean present_query = true && (isSetQuery());
23000 list.add(present_query);
23001 if (present_query)
23002 list.add(query);
23003
23004 return list.hashCode();
23005 }
23006
23007 @Override
23008 public int compareTo(getFile_args other) {
23009 if (!getClass().equals(other.getClass())) {
23010 return getClass().getName().compareTo(other.getClass().getName());
23011 }
23012
23013 int lastComparison = 0;
23014
23015 lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName());
23016 if (lastComparison != 0) {
23017 return lastComparison;
23018 }
23019 if (isSetProjectName()) {
23020 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName);
23021 if (lastComparison != 0) {
23022 return lastComparison;
23023 }
23024 }
23025 lastComparison = Boolean.valueOf(isSetRepositoryName()).compareTo(other.isSetRepositoryName());
23026 if (lastComparison != 0) {
23027 return lastComparison;
23028 }
23029 if (isSetRepositoryName()) {
23030 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.repositoryName, other.repositoryName);
23031 if (lastComparison != 0) {
23032 return lastComparison;
23033 }
23034 }
23035 lastComparison = Boolean.valueOf(isSetRevision()).compareTo(other.isSetRevision());
23036 if (lastComparison != 0) {
23037 return lastComparison;
23038 }
23039 if (isSetRevision()) {
23040 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.revision, other.revision);
23041 if (lastComparison != 0) {
23042 return lastComparison;
23043 }
23044 }
23045 lastComparison = Boolean.valueOf(isSetQuery()).compareTo(other.isSetQuery());
23046 if (lastComparison != 0) {
23047 return lastComparison;
23048 }
23049 if (isSetQuery()) {
23050 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.query, other.query);
23051 if (lastComparison != 0) {
23052 return lastComparison;
23053 }
23054 }
23055 return 0;
23056 }
23057
23058 public _Fields fieldForId(int fieldId) {
23059 return _Fields.findByThriftId(fieldId);
23060 }
23061
23062 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23063 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
23064 }
23065
23066 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
23067 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
23068 }
23069
23070 @Override
23071 public String toString() {
23072 StringBuilder sb = new StringBuilder("getFile_args(");
23073 boolean first = true;
23074
23075 sb.append("projectName:");
23076 if (this.projectName == null) {
23077 sb.append("null");
23078 } else {
23079 sb.append(this.projectName);
23080 }
23081 first = false;
23082 if (!first) sb.append(", ");
23083 sb.append("repositoryName:");
23084 if (this.repositoryName == null) {
23085 sb.append("null");
23086 } else {
23087 sb.append(this.repositoryName);
23088 }
23089 first = false;
23090 if (!first) sb.append(", ");
23091 sb.append("revision:");
23092 if (this.revision == null) {
23093 sb.append("null");
23094 } else {
23095 sb.append(this.revision);
23096 }
23097 first = false;
23098 if (!first) sb.append(", ");
23099 sb.append("query:");
23100 if (this.query == null) {
23101 sb.append("null");
23102 } else {
23103 sb.append(this.query);
23104 }
23105 first = false;
23106 sb.append(")");
23107 return sb.toString();
23108 }
23109
23110 public void validate() throws org.apache.thrift.TException {
23111
23112
23113 if (revision != null) {
23114 revision.validate();
23115 }
23116 if (query != null) {
23117 query.validate();
23118 }
23119 }
23120
23121 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23122 try {
23123 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23124 } catch (org.apache.thrift.TException te) {
23125 throw new java.io.IOException(te);
23126 }
23127 }
23128
23129 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23130 try {
23131 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23132 } catch (org.apache.thrift.TException te) {
23133 throw new java.io.IOException(te);
23134 }
23135 }
23136
23137 private static class getFile_argsStandardSchemeFactory implements SchemeFactory {
23138 public getFile_argsStandardScheme getScheme() {
23139 return new getFile_argsStandardScheme();
23140 }
23141 }
23142
23143 private static class getFile_argsStandardScheme extends StandardScheme<getFile_args> {
23144
23145 public void read(org.apache.thrift.protocol.TProtocol iprot, getFile_args struct) throws org.apache.thrift.TException {
23146 org.apache.thrift.protocol.TField schemeField;
23147 iprot.readStructBegin();
23148 while (true)
23149 {
23150 schemeField = iprot.readFieldBegin();
23151 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
23152 break;
23153 }
23154 switch (schemeField.id) {
23155 case 1:
23156 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
23157 struct.projectName = iprot.readString();
23158 struct.setProjectNameIsSet(true);
23159 } else {
23160 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
23161 }
23162 break;
23163 case 2:
23164 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
23165 struct.repositoryName = iprot.readString();
23166 struct.setRepositoryNameIsSet(true);
23167 } else {
23168 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
23169 }
23170 break;
23171 case 3:
23172 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
23173 struct.revision = new Revision();
23174 struct.revision.read(iprot);
23175 struct.setRevisionIsSet(true);
23176 } else {
23177 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
23178 }
23179 break;
23180 case 4:
23181 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
23182 struct.query = new Query();
23183 struct.query.read(iprot);
23184 struct.setQueryIsSet(true);
23185 } else {
23186 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
23187 }
23188 break;
23189 default:
23190 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
23191 }
23192 iprot.readFieldEnd();
23193 }
23194 iprot.readStructEnd();
23195
23196
23197 struct.validate();
23198 }
23199
23200 public void write(org.apache.thrift.protocol.TProtocol oprot, getFile_args struct) throws org.apache.thrift.TException {
23201 struct.validate();
23202
23203 oprot.writeStructBegin(STRUCT_DESC);
23204 if (struct.projectName != null) {
23205 oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC);
23206 oprot.writeString(struct.projectName);
23207 oprot.writeFieldEnd();
23208 }
23209 if (struct.repositoryName != null) {
23210 oprot.writeFieldBegin(REPOSITORY_NAME_FIELD_DESC);
23211 oprot.writeString(struct.repositoryName);
23212 oprot.writeFieldEnd();
23213 }
23214 if (struct.revision != null) {
23215 oprot.writeFieldBegin(REVISION_FIELD_DESC);
23216 struct.revision.write(oprot);
23217 oprot.writeFieldEnd();
23218 }
23219 if (struct.query != null) {
23220 oprot.writeFieldBegin(QUERY_FIELD_DESC);
23221 struct.query.write(oprot);
23222 oprot.writeFieldEnd();
23223 }
23224 oprot.writeFieldStop();
23225 oprot.writeStructEnd();
23226 }
23227
23228 }
23229
23230 private static class getFile_argsTupleSchemeFactory implements SchemeFactory {
23231 public getFile_argsTupleScheme getScheme() {
23232 return new getFile_argsTupleScheme();
23233 }
23234 }
23235
23236 private static class getFile_argsTupleScheme extends TupleScheme<getFile_args> {
23237
23238 @Override
23239 public void write(org.apache.thrift.protocol.TProtocol prot, getFile_args struct) throws org.apache.thrift.TException {
23240 TTupleProtocol oprot = (TTupleProtocol) prot;
23241 BitSet optionals = new BitSet();
23242 if (struct.isSetProjectName()) {
23243 optionals.set(0);
23244 }
23245 if (struct.isSetRepositoryName()) {
23246 optionals.set(1);
23247 }
23248 if (struct.isSetRevision()) {
23249 optionals.set(2);
23250 }
23251 if (struct.isSetQuery()) {
23252 optionals.set(3);
23253 }
23254 oprot.writeBitSet(optionals, 4);
23255 if (struct.isSetProjectName()) {
23256 oprot.writeString(struct.projectName);
23257 }
23258 if (struct.isSetRepositoryName()) {
23259 oprot.writeString(struct.repositoryName);
23260 }
23261 if (struct.isSetRevision()) {
23262 struct.revision.write(oprot);
23263 }
23264 if (struct.isSetQuery()) {
23265 struct.query.write(oprot);
23266 }
23267 }
23268
23269 @Override
23270 public void read(org.apache.thrift.protocol.TProtocol prot, getFile_args struct) throws org.apache.thrift.TException {
23271 TTupleProtocol iprot = (TTupleProtocol) prot;
23272 BitSet incoming = iprot.readBitSet(4);
23273 if (incoming.get(0)) {
23274 struct.projectName = iprot.readString();
23275 struct.setProjectNameIsSet(true);
23276 }
23277 if (incoming.get(1)) {
23278 struct.repositoryName = iprot.readString();
23279 struct.setRepositoryNameIsSet(true);
23280 }
23281 if (incoming.get(2)) {
23282 struct.revision = new Revision();
23283 struct.revision.read(iprot);
23284 struct.setRevisionIsSet(true);
23285 }
23286 if (incoming.get(3)) {
23287 struct.query = new Query();
23288 struct.query.read(iprot);
23289 struct.setQueryIsSet(true);
23290 }
23291 }
23292 }
23293
23294 }
23295
23296 public static class getFile_result implements org.apache.thrift.TBase<getFile_result, getFile_result._Fields>, java.io.Serializable, Cloneable, Comparable<getFile_result> {
23297 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFile_result");
23298
23299 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
23300 private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
23301
23302 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
23303 static {
23304 schemes.put(StandardScheme.class, new getFile_resultStandardSchemeFactory());
23305 schemes.put(TupleScheme.class, new getFile_resultTupleSchemeFactory());
23306 }
23307
23308 public GetFileResult success;
23309 public CentralDogmaException e;
23310
23311
23312 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
23313 SUCCESS((short)0, "success"),
23314 E((short)1, "e");
23315
23316 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23317
23318 static {
23319 for (_Fields field : EnumSet.allOf(_Fields.class)) {
23320 byName.put(field.getFieldName(), field);
23321 }
23322 }
23323
23324
23325
23326
23327 public static _Fields findByThriftId(int fieldId) {
23328 switch(fieldId) {
23329 case 0:
23330 return SUCCESS;
23331 case 1:
23332 return E;
23333 default:
23334 return null;
23335 }
23336 }
23337
23338
23339
23340
23341
23342 public static _Fields findByThriftIdOrThrow(int fieldId) {
23343 _Fields fields = findByThriftId(fieldId);
23344 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23345 return fields;
23346 }
23347
23348
23349
23350
23351 public static _Fields findByName(String name) {
23352 return byName.get(name);
23353 }
23354
23355 private final short _thriftId;
23356 private final String _fieldName;
23357
23358 _Fields(short thriftId, String fieldName) {
23359 _thriftId = thriftId;
23360 _fieldName = fieldName;
23361 }
23362
23363 public short getThriftFieldId() {
23364 return _thriftId;
23365 }
23366
23367 public String getFieldName() {
23368 return _fieldName;
23369 }
23370 }
23371
23372
23373 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
23374 static {
23375 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23376 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
23377 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, GetFileResult.class)));
23378 tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
23379 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
23380 metaDataMap = Collections.unmodifiableMap(tmpMap);
23381 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFile_result.class, metaDataMap);
23382 }
23383
23384 public getFile_result() {
23385 }
23386
23387 public getFile_result(
23388 GetFileResult success,
23389 CentralDogmaException e)
23390 {
23391 this();
23392 this.success = success;
23393 this.e = e;
23394 }
23395
23396
23397
23398
23399 public getFile_result(getFile_result other) {
23400 if (other.isSetSuccess()) {
23401 this.success = new GetFileResult(other.success);
23402 }
23403 if (other.isSetE()) {
23404 this.e = new CentralDogmaException(other.e);
23405 }
23406 }
23407
23408 public getFile_result deepCopy() {
23409 return new getFile_result(this);
23410 }
23411
23412 @Override
23413 public void clear() {
23414 this.success = null;
23415 this.e = null;
23416 }
23417
23418 public GetFileResult getSuccess() {
23419 return this.success;
23420 }
23421
23422 public getFile_result setSuccess(GetFileResult success) {
23423 this.success = success;
23424 return this;
23425 }
23426
23427 public void unsetSuccess() {
23428 this.success = null;
23429 }
23430
23431
23432 public boolean isSetSuccess() {
23433 return this.success != null;
23434 }
23435
23436 public void setSuccessIsSet(boolean value) {
23437 if (!value) {
23438 this.success = null;
23439 }
23440 }
23441
23442 public CentralDogmaException getE() {
23443 return this.e;
23444 }
23445
23446 public getFile_result setE(CentralDogmaException e) {
23447 this.e = e;
23448 return this;
23449 }
23450
23451 public void unsetE() {
23452 this.e = null;
23453 }
23454
23455
23456 public boolean isSetE() {
23457 return this.e != null;
23458 }
23459
23460 public void setEIsSet(boolean value) {
23461 if (!value) {
23462 this.e = null;
23463 }
23464 }
23465
23466 public void setFieldValue(_Fields field, Object value) {
23467 switch (field) {
23468 case SUCCESS:
23469 if (value == null) {
23470 unsetSuccess();
23471 } else {
23472 setSuccess((GetFileResult)value);
23473 }
23474 break;
23475
23476 case E:
23477 if (value == null) {
23478 unsetE();
23479 } else {
23480 setE((CentralDogmaException)value);
23481 }
23482 break;
23483
23484 }
23485 }
23486
23487 public Object getFieldValue(_Fields field) {
23488 switch (field) {
23489 case SUCCESS:
23490 return getSuccess();
23491
23492 case E:
23493 return getE();
23494
23495 }
23496 throw new IllegalStateException();
23497 }
23498
23499
23500 public boolean isSet(_Fields field) {
23501 if (field == null) {
23502 throw new IllegalArgumentException();
23503 }
23504
23505 switch (field) {
23506 case SUCCESS:
23507 return isSetSuccess();
23508 case E:
23509 return isSetE();
23510 }
23511 throw new IllegalStateException();
23512 }
23513
23514 @Override
23515 public boolean equals(Object that) {
23516 if (that == null)
23517 return false;
23518 if (that instanceof getFile_result)
23519 return this.equals((getFile_result)that);
23520 return false;
23521 }
23522
23523 public boolean equals(getFile_result that) {
23524 if (that == null)
23525 return false;
23526
23527 boolean this_present_success = true && this.isSetSuccess();
23528 boolean that_present_success = true && that.isSetSuccess();
23529 if (this_present_success || that_present_success) {
23530 if (!(this_present_success && that_present_success))
23531 return false;
23532 if (!this.success.equals(that.success))
23533 return false;
23534 }
23535
23536 boolean this_present_e = true && this.isSetE();
23537 boolean that_present_e = true && that.isSetE();
23538 if (this_present_e || that_present_e) {
23539 if (!(this_present_e && that_present_e))
23540 return false;
23541 if (!this.e.equals(that.e))
23542 return false;
23543 }
23544
23545 return true;
23546 }
23547
23548 @Override
23549 public int hashCode() {
23550 List<Object> list = new ArrayList<Object>();
23551
23552 boolean present_success = true && (isSetSuccess());
23553 list.add(present_success);
23554 if (present_success)
23555 list.add(success);
23556
23557 boolean present_e = true && (isSetE());
23558 list.add(present_e);
23559 if (present_e)
23560 list.add(e);
23561
23562 return list.hashCode();
23563 }
23564
23565 @Override
23566 public int compareTo(getFile_result other) {
23567 if (!getClass().equals(other.getClass())) {
23568 return getClass().getName().compareTo(other.getClass().getName());
23569 }
23570
23571 int lastComparison = 0;
23572
23573 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
23574 if (lastComparison != 0) {
23575 return lastComparison;
23576 }
23577 if (isSetSuccess()) {
23578 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
23579 if (lastComparison != 0) {
23580 return lastComparison;
23581 }
23582 }
23583 lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE());
23584 if (lastComparison != 0) {
23585 return lastComparison;
23586 }
23587 if (isSetE()) {
23588 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e);
23589 if (lastComparison != 0) {
23590 return lastComparison;
23591 }
23592 }
23593 return 0;
23594 }
23595
23596 public _Fields fieldForId(int fieldId) {
23597 return _Fields.findByThriftId(fieldId);
23598 }
23599
23600 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23601 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
23602 }
23603
23604 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
23605 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
23606 }
23607
23608 @Override
23609 public String toString() {
23610 StringBuilder sb = new StringBuilder("getFile_result(");
23611 boolean first = true;
23612
23613 sb.append("success:");
23614 if (this.success == null) {
23615 sb.append("null");
23616 } else {
23617 sb.append(this.success);
23618 }
23619 first = false;
23620 if (!first) sb.append(", ");
23621 sb.append("e:");
23622 if (this.e == null) {
23623 sb.append("null");
23624 } else {
23625 sb.append(this.e);
23626 }
23627 first = false;
23628 sb.append(")");
23629 return sb.toString();
23630 }
23631
23632 public void validate() throws org.apache.thrift.TException {
23633
23634
23635 if (success != null) {
23636 success.validate();
23637 }
23638 }
23639
23640 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23641 try {
23642 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23643 } catch (org.apache.thrift.TException te) {
23644 throw new java.io.IOException(te);
23645 }
23646 }
23647
23648 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23649 try {
23650 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23651 } catch (org.apache.thrift.TException te) {
23652 throw new java.io.IOException(te);
23653 }
23654 }
23655
23656 private static class getFile_resultStandardSchemeFactory implements SchemeFactory {
23657 public getFile_resultStandardScheme getScheme() {
23658 return new getFile_resultStandardScheme();
23659 }
23660 }
23661
23662 private static class getFile_resultStandardScheme extends StandardScheme<getFile_result> {
23663
23664 public void read(org.apache.thrift.protocol.TProtocol iprot, getFile_result struct) throws org.apache.thrift.TException {
23665 org.apache.thrift.protocol.TField schemeField;
23666 iprot.readStructBegin();
23667 while (true)
23668 {
23669 schemeField = iprot.readFieldBegin();
23670 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
23671 break;
23672 }
23673 switch (schemeField.id) {
23674 case 0:
23675 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
23676 struct.success = new GetFileResult();
23677 struct.success.read(iprot);
23678 struct.setSuccessIsSet(true);
23679 } else {
23680 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
23681 }
23682 break;
23683 case 1:
23684 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
23685 struct.e = new CentralDogmaException();
23686 struct.e.read(iprot);
23687 struct.setEIsSet(true);
23688 } else {
23689 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
23690 }
23691 break;
23692 default:
23693 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
23694 }
23695 iprot.readFieldEnd();
23696 }
23697 iprot.readStructEnd();
23698
23699
23700 struct.validate();
23701 }
23702
23703 public void write(org.apache.thrift.protocol.TProtocol oprot, getFile_result struct) throws org.apache.thrift.TException {
23704 struct.validate();
23705
23706 oprot.writeStructBegin(STRUCT_DESC);
23707 if (struct.success != null) {
23708 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
23709 struct.success.write(oprot);
23710 oprot.writeFieldEnd();
23711 }
23712 if (struct.e != null) {
23713 oprot.writeFieldBegin(E_FIELD_DESC);
23714 struct.e.write(oprot);
23715 oprot.writeFieldEnd();
23716 }
23717 oprot.writeFieldStop();
23718 oprot.writeStructEnd();
23719 }
23720
23721 }
23722
23723 private static class getFile_resultTupleSchemeFactory implements SchemeFactory {
23724 public getFile_resultTupleScheme getScheme() {
23725 return new getFile_resultTupleScheme();
23726 }
23727 }
23728
23729 private static class getFile_resultTupleScheme extends TupleScheme<getFile_result> {
23730
23731 @Override
23732 public void write(org.apache.thrift.protocol.TProtocol prot, getFile_result struct) throws org.apache.thrift.TException {
23733 TTupleProtocol oprot = (TTupleProtocol) prot;
23734 BitSet optionals = new BitSet();
23735 if (struct.isSetSuccess()) {
23736 optionals.set(0);
23737 }
23738 if (struct.isSetE()) {
23739 optionals.set(1);
23740 }
23741 oprot.writeBitSet(optionals, 2);
23742 if (struct.isSetSuccess()) {
23743 struct.success.write(oprot);
23744 }
23745 if (struct.isSetE()) {
23746 struct.e.write(oprot);
23747 }
23748 }
23749
23750 @Override
23751 public void read(org.apache.thrift.protocol.TProtocol prot, getFile_result struct) throws org.apache.thrift.TException {
23752 TTupleProtocol iprot = (TTupleProtocol) prot;
23753 BitSet incoming = iprot.readBitSet(2);
23754 if (incoming.get(0)) {
23755 struct.success = new GetFileResult();
23756 struct.success.read(iprot);
23757 struct.setSuccessIsSet(true);
23758 }
23759 if (incoming.get(1)) {
23760 struct.e = new CentralDogmaException();
23761 struct.e.read(iprot);
23762 struct.setEIsSet(true);
23763 }
23764 }
23765 }
23766
23767 }
23768
23769 public static class diffFile_args implements org.apache.thrift.TBase<diffFile_args, diffFile_args._Fields>, java.io.Serializable, Cloneable, Comparable<diffFile_args> {
23770 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("diffFile_args");
23771
23772 private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)1);
23773 private static final org.apache.thrift.protocol.TField REPOSITORY_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("repositoryName", org.apache.thrift.protocol.TType.STRING, (short)2);
23774 private static final org.apache.thrift.protocol.TField FROM_REVISION_FIELD_DESC = new org.apache.thrift.protocol.TField("from", org.apache.thrift.protocol.TType.STRUCT, (short)3);
23775 private static final org.apache.thrift.protocol.TField TO_REVISION_FIELD_DESC = new org.apache.thrift.protocol.TField("to", org.apache.thrift.protocol.TType.STRUCT, (short)4);
23776 private static final org.apache.thrift.protocol.TField QUERY_FIELD_DESC = new org.apache.thrift.protocol.TField("query", org.apache.thrift.protocol.TType.STRUCT, (short)5);
23777
23778 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
23779 static {
23780 schemes.put(StandardScheme.class, new diffFile_argsStandardSchemeFactory());
23781 schemes.put(TupleScheme.class, new diffFile_argsTupleSchemeFactory());
23782 }
23783
23784 public String projectName;
23785 public String repositoryName;
23786 public Revision from;
23787 public Revision to;
23788 public Query query;
23789
23790
23791 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
23792 PROJECT_NAME((short)1, "projectName"),
23793 REPOSITORY_NAME((short)2, "repositoryName"),
23794 FROM_REVISION((short)3, "from"),
23795 TO_REVISION((short)4, "to"),
23796 QUERY((short)5, "query");
23797
23798 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23799
23800 static {
23801 for (_Fields field : EnumSet.allOf(_Fields.class)) {
23802 byName.put(field.getFieldName(), field);
23803 }
23804 }
23805
23806
23807
23808
23809 public static _Fields findByThriftId(int fieldId) {
23810 switch(fieldId) {
23811 case 1:
23812 return PROJECT_NAME;
23813 case 2:
23814 return REPOSITORY_NAME;
23815 case 3:
23816 return FROM_REVISION;
23817 case 4:
23818 return TO_REVISION;
23819 case 5:
23820 return QUERY;
23821 default:
23822 return null;
23823 }
23824 }
23825
23826
23827
23828
23829
23830 public static _Fields findByThriftIdOrThrow(int fieldId) {
23831 _Fields fields = findByThriftId(fieldId);
23832 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23833 return fields;
23834 }
23835
23836
23837
23838
23839 public static _Fields findByName(String name) {
23840 return byName.get(name);
23841 }
23842
23843 private final short _thriftId;
23844 private final String _fieldName;
23845
23846 _Fields(short thriftId, String fieldName) {
23847 _thriftId = thriftId;
23848 _fieldName = fieldName;
23849 }
23850
23851 public short getThriftFieldId() {
23852 return _thriftId;
23853 }
23854
23855 public String getFieldName() {
23856 return _fieldName;
23857 }
23858 }
23859
23860
23861 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
23862 static {
23863 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23864 tmpMap.put(_Fields.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", org.apache.thrift.TFieldRequirementType.DEFAULT,
23865 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
23866 tmpMap.put(_Fields.REPOSITORY_NAME, new org.apache.thrift.meta_data.FieldMetaData("repositoryName", org.apache.thrift.TFieldRequirementType.DEFAULT,
23867 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
23868 tmpMap.put(_Fields.FROM_REVISION, new org.apache.thrift.meta_data.FieldMetaData("from", org.apache.thrift.TFieldRequirementType.DEFAULT,
23869 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Revision.class)));
23870 tmpMap.put(_Fields.TO_REVISION, new org.apache.thrift.meta_data.FieldMetaData("to", org.apache.thrift.TFieldRequirementType.DEFAULT,
23871 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Revision.class)));
23872 tmpMap.put(_Fields.QUERY, new org.apache.thrift.meta_data.FieldMetaData("query", org.apache.thrift.TFieldRequirementType.DEFAULT,
23873 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Query.class)));
23874 metaDataMap = Collections.unmodifiableMap(tmpMap);
23875 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(diffFile_args.class, metaDataMap);
23876 }
23877
23878 public diffFile_args() {
23879 }
23880
23881 public diffFile_args(
23882 String projectName,
23883 String repositoryName,
23884 Revision from,
23885 Revision to,
23886 Query query)
23887 {
23888 this();
23889 this.projectName = projectName;
23890 this.repositoryName = repositoryName;
23891 this.from = from;
23892 this.to = to;
23893 this.query = query;
23894 }
23895
23896
23897
23898
23899 public diffFile_args(diffFile_args other) {
23900 if (other.isSetProjectName()) {
23901 this.projectName = other.projectName;
23902 }
23903 if (other.isSetRepositoryName()) {
23904 this.repositoryName = other.repositoryName;
23905 }
23906 if (other.isSetFromRevision()) {
23907 this.from = new Revision(other.from);
23908 }
23909 if (other.isSetToRevision()) {
23910 this.to = new Revision(other.to);
23911 }
23912 if (other.isSetQuery()) {
23913 this.query = new Query(other.query);
23914 }
23915 }
23916
23917 public diffFile_args deepCopy() {
23918 return new diffFile_args(this);
23919 }
23920
23921 @Override
23922 public void clear() {
23923 this.projectName = null;
23924 this.repositoryName = null;
23925 this.from = null;
23926 this.to = null;
23927 this.query = null;
23928 }
23929
23930 public String getProjectName() {
23931 return this.projectName;
23932 }
23933
23934 public diffFile_args setProjectName(String projectName) {
23935 this.projectName = projectName;
23936 return this;
23937 }
23938
23939 public void unsetProjectName() {
23940 this.projectName = null;
23941 }
23942
23943
23944 public boolean isSetProjectName() {
23945 return this.projectName != null;
23946 }
23947
23948 public void setProjectNameIsSet(boolean value) {
23949 if (!value) {
23950 this.projectName = null;
23951 }
23952 }
23953
23954 public String getRepositoryName() {
23955 return this.repositoryName;
23956 }
23957
23958 public diffFile_args setRepositoryName(String repositoryName) {
23959 this.repositoryName = repositoryName;
23960 return this;
23961 }
23962
23963 public void unsetRepositoryName() {
23964 this.repositoryName = null;
23965 }
23966
23967
23968 public boolean isSetRepositoryName() {
23969 return this.repositoryName != null;
23970 }
23971
23972 public void setRepositoryNameIsSet(boolean value) {
23973 if (!value) {
23974 this.repositoryName = null;
23975 }
23976 }
23977
23978 public Revision getFromRevision() {
23979 return this.from;
23980 }
23981
23982 public diffFile_args setFromRevision(Revision from) {
23983 this.from = from;
23984 return this;
23985 }
23986
23987 public void unsetFromRevision() {
23988 this.from = null;
23989 }
23990
23991
23992 public boolean isSetFromRevision() {
23993 return this.from != null;
23994 }
23995
23996 public void setFromRevisionIsSet(boolean value) {
23997 if (!value) {
23998 this.from = null;
23999 }
24000 }
24001
24002 public Revision getToRevision() {
24003 return this.to;
24004 }
24005
24006 public diffFile_args setToRevision(Revision to) {
24007 this.to = to;
24008 return this;
24009 }
24010
24011 public void unsetToRevision() {
24012 this.to = null;
24013 }
24014
24015
24016 public boolean isSetToRevision() {
24017 return this.to != null;
24018 }
24019
24020 public void setToRevisionIsSet(boolean value) {
24021 if (!value) {
24022 this.to = null;
24023 }
24024 }
24025
24026 public Query getQuery() {
24027 return this.query;
24028 }
24029
24030 public diffFile_args setQuery(Query query) {
24031 this.query = query;
24032 return this;
24033 }
24034
24035 public void unsetQuery() {
24036 this.query = null;
24037 }
24038
24039
24040 public boolean isSetQuery() {
24041 return this.query != null;
24042 }
24043
24044 public void setQueryIsSet(boolean value) {
24045 if (!value) {
24046 this.query = null;
24047 }
24048 }
24049
24050 public void setFieldValue(_Fields field, Object value) {
24051 switch (field) {
24052 case PROJECT_NAME:
24053 if (value == null) {
24054 unsetProjectName();
24055 } else {
24056 setProjectName((String)value);
24057 }
24058 break;
24059
24060 case REPOSITORY_NAME:
24061 if (value == null) {
24062 unsetRepositoryName();
24063 } else {
24064 setRepositoryName((String)value);
24065 }
24066 break;
24067
24068 case FROM_REVISION:
24069 if (value == null) {
24070 unsetFromRevision();
24071 } else {
24072 setFromRevision((Revision)value);
24073 }
24074 break;
24075
24076 case TO_REVISION:
24077 if (value == null) {
24078 unsetToRevision();
24079 } else {
24080 setToRevision((Revision)value);
24081 }
24082 break;
24083
24084 case QUERY:
24085 if (value == null) {
24086 unsetQuery();
24087 } else {
24088 setQuery((Query)value);
24089 }
24090 break;
24091
24092 }
24093 }
24094
24095 public Object getFieldValue(_Fields field) {
24096 switch (field) {
24097 case PROJECT_NAME:
24098 return getProjectName();
24099
24100 case REPOSITORY_NAME:
24101 return getRepositoryName();
24102
24103 case FROM_REVISION:
24104 return getFromRevision();
24105
24106 case TO_REVISION:
24107 return getToRevision();
24108
24109 case QUERY:
24110 return getQuery();
24111
24112 }
24113 throw new IllegalStateException();
24114 }
24115
24116
24117 public boolean isSet(_Fields field) {
24118 if (field == null) {
24119 throw new IllegalArgumentException();
24120 }
24121
24122 switch (field) {
24123 case PROJECT_NAME:
24124 return isSetProjectName();
24125 case REPOSITORY_NAME:
24126 return isSetRepositoryName();
24127 case FROM_REVISION:
24128 return isSetFromRevision();
24129 case TO_REVISION:
24130 return isSetToRevision();
24131 case QUERY:
24132 return isSetQuery();
24133 }
24134 throw new IllegalStateException();
24135 }
24136
24137 @Override
24138 public boolean equals(Object that) {
24139 if (that == null)
24140 return false;
24141 if (that instanceof diffFile_args)
24142 return this.equals((diffFile_args)that);
24143 return false;
24144 }
24145
24146 public boolean equals(diffFile_args that) {
24147 if (that == null)
24148 return false;
24149
24150 boolean this_present_projectName = true && this.isSetProjectName();
24151 boolean that_present_projectName = true && that.isSetProjectName();
24152 if (this_present_projectName || that_present_projectName) {
24153 if (!(this_present_projectName && that_present_projectName))
24154 return false;
24155 if (!this.projectName.equals(that.projectName))
24156 return false;
24157 }
24158
24159 boolean this_present_repositoryName = true && this.isSetRepositoryName();
24160 boolean that_present_repositoryName = true && that.isSetRepositoryName();
24161 if (this_present_repositoryName || that_present_repositoryName) {
24162 if (!(this_present_repositoryName && that_present_repositoryName))
24163 return false;
24164 if (!this.repositoryName.equals(that.repositoryName))
24165 return false;
24166 }
24167
24168 boolean this_present_from = true && this.isSetFromRevision();
24169 boolean that_present_from = true && that.isSetFromRevision();
24170 if (this_present_from || that_present_from) {
24171 if (!(this_present_from && that_present_from))
24172 return false;
24173 if (!this.from.equals(that.from))
24174 return false;
24175 }
24176
24177 boolean this_present_to = true && this.isSetToRevision();
24178 boolean that_present_to = true && that.isSetToRevision();
24179 if (this_present_to || that_present_to) {
24180 if (!(this_present_to && that_present_to))
24181 return false;
24182 if (!this.to.equals(that.to))
24183 return false;
24184 }
24185
24186 boolean this_present_query = true && this.isSetQuery();
24187 boolean that_present_query = true && that.isSetQuery();
24188 if (this_present_query || that_present_query) {
24189 if (!(this_present_query && that_present_query))
24190 return false;
24191 if (!this.query.equals(that.query))
24192 return false;
24193 }
24194
24195 return true;
24196 }
24197
24198 @Override
24199 public int hashCode() {
24200 List<Object> list = new ArrayList<Object>();
24201
24202 boolean present_projectName = true && (isSetProjectName());
24203 list.add(present_projectName);
24204 if (present_projectName)
24205 list.add(projectName);
24206
24207 boolean present_repositoryName = true && (isSetRepositoryName());
24208 list.add(present_repositoryName);
24209 if (present_repositoryName)
24210 list.add(repositoryName);
24211
24212 boolean present_from = true && (isSetFromRevision());
24213 list.add(present_from);
24214 if (present_from)
24215 list.add(from);
24216
24217 boolean present_to = true && (isSetToRevision());
24218 list.add(present_to);
24219 if (present_to)
24220 list.add(to);
24221
24222 boolean present_query = true && (isSetQuery());
24223 list.add(present_query);
24224 if (present_query)
24225 list.add(query);
24226
24227 return list.hashCode();
24228 }
24229
24230 @Override
24231 public int compareTo(diffFile_args other) {
24232 if (!getClass().equals(other.getClass())) {
24233 return getClass().getName().compareTo(other.getClass().getName());
24234 }
24235
24236 int lastComparison = 0;
24237
24238 lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName());
24239 if (lastComparison != 0) {
24240 return lastComparison;
24241 }
24242 if (isSetProjectName()) {
24243 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName);
24244 if (lastComparison != 0) {
24245 return lastComparison;
24246 }
24247 }
24248 lastComparison = Boolean.valueOf(isSetRepositoryName()).compareTo(other.isSetRepositoryName());
24249 if (lastComparison != 0) {
24250 return lastComparison;
24251 }
24252 if (isSetRepositoryName()) {
24253 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.repositoryName, other.repositoryName);
24254 if (lastComparison != 0) {
24255 return lastComparison;
24256 }
24257 }
24258 lastComparison = Boolean.valueOf(isSetFromRevision()).compareTo(other.isSetFromRevision());
24259 if (lastComparison != 0) {
24260 return lastComparison;
24261 }
24262 if (isSetFromRevision()) {
24263 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.from, other.from);
24264 if (lastComparison != 0) {
24265 return lastComparison;
24266 }
24267 }
24268 lastComparison = Boolean.valueOf(isSetToRevision()).compareTo(other.isSetToRevision());
24269 if (lastComparison != 0) {
24270 return lastComparison;
24271 }
24272 if (isSetToRevision()) {
24273 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.to, other.to);
24274 if (lastComparison != 0) {
24275 return lastComparison;
24276 }
24277 }
24278 lastComparison = Boolean.valueOf(isSetQuery()).compareTo(other.isSetQuery());
24279 if (lastComparison != 0) {
24280 return lastComparison;
24281 }
24282 if (isSetQuery()) {
24283 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.query, other.query);
24284 if (lastComparison != 0) {
24285 return lastComparison;
24286 }
24287 }
24288 return 0;
24289 }
24290
24291 public _Fields fieldForId(int fieldId) {
24292 return _Fields.findByThriftId(fieldId);
24293 }
24294
24295 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
24296 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
24297 }
24298
24299 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
24300 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
24301 }
24302
24303 @Override
24304 public String toString() {
24305 StringBuilder sb = new StringBuilder("diffFile_args(");
24306 boolean first = true;
24307
24308 sb.append("projectName:");
24309 if (this.projectName == null) {
24310 sb.append("null");
24311 } else {
24312 sb.append(this.projectName);
24313 }
24314 first = false;
24315 if (!first) sb.append(", ");
24316 sb.append("repositoryName:");
24317 if (this.repositoryName == null) {
24318 sb.append("null");
24319 } else {
24320 sb.append(this.repositoryName);
24321 }
24322 first = false;
24323 if (!first) sb.append(", ");
24324 sb.append("from:");
24325 if (this.from == null) {
24326 sb.append("null");
24327 } else {
24328 sb.append(this.from);
24329 }
24330 first = false;
24331 if (!first) sb.append(", ");
24332 sb.append("to:");
24333 if (this.to == null) {
24334 sb.append("null");
24335 } else {
24336 sb.append(this.to);
24337 }
24338 first = false;
24339 if (!first) sb.append(", ");
24340 sb.append("query:");
24341 if (this.query == null) {
24342 sb.append("null");
24343 } else {
24344 sb.append(this.query);
24345 }
24346 first = false;
24347 sb.append(")");
24348 return sb.toString();
24349 }
24350
24351 public void validate() throws org.apache.thrift.TException {
24352
24353
24354 if (from != null) {
24355 from.validate();
24356 }
24357 if (to != null) {
24358 to.validate();
24359 }
24360 if (query != null) {
24361 query.validate();
24362 }
24363 }
24364
24365 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
24366 try {
24367 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
24368 } catch (org.apache.thrift.TException te) {
24369 throw new java.io.IOException(te);
24370 }
24371 }
24372
24373 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
24374 try {
24375 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
24376 } catch (org.apache.thrift.TException te) {
24377 throw new java.io.IOException(te);
24378 }
24379 }
24380
24381 private static class diffFile_argsStandardSchemeFactory implements SchemeFactory {
24382 public diffFile_argsStandardScheme getScheme() {
24383 return new diffFile_argsStandardScheme();
24384 }
24385 }
24386
24387 private static class diffFile_argsStandardScheme extends StandardScheme<diffFile_args> {
24388
24389 public void read(org.apache.thrift.protocol.TProtocol iprot, diffFile_args struct) throws org.apache.thrift.TException {
24390 org.apache.thrift.protocol.TField schemeField;
24391 iprot.readStructBegin();
24392 while (true)
24393 {
24394 schemeField = iprot.readFieldBegin();
24395 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
24396 break;
24397 }
24398 switch (schemeField.id) {
24399 case 1:
24400 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
24401 struct.projectName = iprot.readString();
24402 struct.setProjectNameIsSet(true);
24403 } else {
24404 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
24405 }
24406 break;
24407 case 2:
24408 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
24409 struct.repositoryName = iprot.readString();
24410 struct.setRepositoryNameIsSet(true);
24411 } else {
24412 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
24413 }
24414 break;
24415 case 3:
24416 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
24417 struct.from = new Revision();
24418 struct.from.read(iprot);
24419 struct.setFromRevisionIsSet(true);
24420 } else {
24421 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
24422 }
24423 break;
24424 case 4:
24425 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
24426 struct.to = new Revision();
24427 struct.to.read(iprot);
24428 struct.setToRevisionIsSet(true);
24429 } else {
24430 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
24431 }
24432 break;
24433 case 5:
24434 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
24435 struct.query = new Query();
24436 struct.query.read(iprot);
24437 struct.setQueryIsSet(true);
24438 } else {
24439 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
24440 }
24441 break;
24442 default:
24443 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
24444 }
24445 iprot.readFieldEnd();
24446 }
24447 iprot.readStructEnd();
24448
24449
24450 struct.validate();
24451 }
24452
24453 public void write(org.apache.thrift.protocol.TProtocol oprot, diffFile_args struct) throws org.apache.thrift.TException {
24454 struct.validate();
24455
24456 oprot.writeStructBegin(STRUCT_DESC);
24457 if (struct.projectName != null) {
24458 oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC);
24459 oprot.writeString(struct.projectName);
24460 oprot.writeFieldEnd();
24461 }
24462 if (struct.repositoryName != null) {
24463 oprot.writeFieldBegin(REPOSITORY_NAME_FIELD_DESC);
24464 oprot.writeString(struct.repositoryName);
24465 oprot.writeFieldEnd();
24466 }
24467 if (struct.from != null) {
24468 oprot.writeFieldBegin(FROM_REVISION_FIELD_DESC);
24469 struct.from.write(oprot);
24470 oprot.writeFieldEnd();
24471 }
24472 if (struct.to != null) {
24473 oprot.writeFieldBegin(TO_REVISION_FIELD_DESC);
24474 struct.to.write(oprot);
24475 oprot.writeFieldEnd();
24476 }
24477 if (struct.query != null) {
24478 oprot.writeFieldBegin(QUERY_FIELD_DESC);
24479 struct.query.write(oprot);
24480 oprot.writeFieldEnd();
24481 }
24482 oprot.writeFieldStop();
24483 oprot.writeStructEnd();
24484 }
24485
24486 }
24487
24488 private static class diffFile_argsTupleSchemeFactory implements SchemeFactory {
24489 public diffFile_argsTupleScheme getScheme() {
24490 return new diffFile_argsTupleScheme();
24491 }
24492 }
24493
24494 private static class diffFile_argsTupleScheme extends TupleScheme<diffFile_args> {
24495
24496 @Override
24497 public void write(org.apache.thrift.protocol.TProtocol prot, diffFile_args struct) throws org.apache.thrift.TException {
24498 TTupleProtocol oprot = (TTupleProtocol) prot;
24499 BitSet optionals = new BitSet();
24500 if (struct.isSetProjectName()) {
24501 optionals.set(0);
24502 }
24503 if (struct.isSetRepositoryName()) {
24504 optionals.set(1);
24505 }
24506 if (struct.isSetFromRevision()) {
24507 optionals.set(2);
24508 }
24509 if (struct.isSetToRevision()) {
24510 optionals.set(3);
24511 }
24512 if (struct.isSetQuery()) {
24513 optionals.set(4);
24514 }
24515 oprot.writeBitSet(optionals, 5);
24516 if (struct.isSetProjectName()) {
24517 oprot.writeString(struct.projectName);
24518 }
24519 if (struct.isSetRepositoryName()) {
24520 oprot.writeString(struct.repositoryName);
24521 }
24522 if (struct.isSetFromRevision()) {
24523 struct.from.write(oprot);
24524 }
24525 if (struct.isSetToRevision()) {
24526 struct.to.write(oprot);
24527 }
24528 if (struct.isSetQuery()) {
24529 struct.query.write(oprot);
24530 }
24531 }
24532
24533 @Override
24534 public void read(org.apache.thrift.protocol.TProtocol prot, diffFile_args struct) throws org.apache.thrift.TException {
24535 TTupleProtocol iprot = (TTupleProtocol) prot;
24536 BitSet incoming = iprot.readBitSet(5);
24537 if (incoming.get(0)) {
24538 struct.projectName = iprot.readString();
24539 struct.setProjectNameIsSet(true);
24540 }
24541 if (incoming.get(1)) {
24542 struct.repositoryName = iprot.readString();
24543 struct.setRepositoryNameIsSet(true);
24544 }
24545 if (incoming.get(2)) {
24546 struct.from = new Revision();
24547 struct.from.read(iprot);
24548 struct.setFromRevisionIsSet(true);
24549 }
24550 if (incoming.get(3)) {
24551 struct.to = new Revision();
24552 struct.to.read(iprot);
24553 struct.setToRevisionIsSet(true);
24554 }
24555 if (incoming.get(4)) {
24556 struct.query = new Query();
24557 struct.query.read(iprot);
24558 struct.setQueryIsSet(true);
24559 }
24560 }
24561 }
24562
24563 }
24564
24565 public static class diffFile_result implements org.apache.thrift.TBase<diffFile_result, diffFile_result._Fields>, java.io.Serializable, Cloneable, Comparable<diffFile_result> {
24566 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("diffFile_result");
24567
24568 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
24569 private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
24570
24571 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
24572 static {
24573 schemes.put(StandardScheme.class, new diffFile_resultStandardSchemeFactory());
24574 schemes.put(TupleScheme.class, new diffFile_resultTupleSchemeFactory());
24575 }
24576
24577 public DiffFileResult success;
24578 public CentralDogmaException e;
24579
24580
24581 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
24582 SUCCESS((short)0, "success"),
24583 E((short)1, "e");
24584
24585 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
24586
24587 static {
24588 for (_Fields field : EnumSet.allOf(_Fields.class)) {
24589 byName.put(field.getFieldName(), field);
24590 }
24591 }
24592
24593
24594
24595
24596 public static _Fields findByThriftId(int fieldId) {
24597 switch(fieldId) {
24598 case 0:
24599 return SUCCESS;
24600 case 1:
24601 return E;
24602 default:
24603 return null;
24604 }
24605 }
24606
24607
24608
24609
24610
24611 public static _Fields findByThriftIdOrThrow(int fieldId) {
24612 _Fields fields = findByThriftId(fieldId);
24613 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
24614 return fields;
24615 }
24616
24617
24618
24619
24620 public static _Fields findByName(String name) {
24621 return byName.get(name);
24622 }
24623
24624 private final short _thriftId;
24625 private final String _fieldName;
24626
24627 _Fields(short thriftId, String fieldName) {
24628 _thriftId = thriftId;
24629 _fieldName = fieldName;
24630 }
24631
24632 public short getThriftFieldId() {
24633 return _thriftId;
24634 }
24635
24636 public String getFieldName() {
24637 return _fieldName;
24638 }
24639 }
24640
24641
24642 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
24643 static {
24644 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24645 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
24646 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, DiffFileResult.class)));
24647 tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
24648 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
24649 metaDataMap = Collections.unmodifiableMap(tmpMap);
24650 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(diffFile_result.class, metaDataMap);
24651 }
24652
24653 public diffFile_result() {
24654 }
24655
24656 public diffFile_result(
24657 DiffFileResult success,
24658 CentralDogmaException e)
24659 {
24660 this();
24661 this.success = success;
24662 this.e = e;
24663 }
24664
24665
24666
24667
24668 public diffFile_result(diffFile_result other) {
24669 if (other.isSetSuccess()) {
24670 this.success = new DiffFileResult(other.success);
24671 }
24672 if (other.isSetE()) {
24673 this.e = new CentralDogmaException(other.e);
24674 }
24675 }
24676
24677 public diffFile_result deepCopy() {
24678 return new diffFile_result(this);
24679 }
24680
24681 @Override
24682 public void clear() {
24683 this.success = null;
24684 this.e = null;
24685 }
24686
24687 public DiffFileResult getSuccess() {
24688 return this.success;
24689 }
24690
24691 public diffFile_result setSuccess(DiffFileResult success) {
24692 this.success = success;
24693 return this;
24694 }
24695
24696 public void unsetSuccess() {
24697 this.success = null;
24698 }
24699
24700
24701 public boolean isSetSuccess() {
24702 return this.success != null;
24703 }
24704
24705 public void setSuccessIsSet(boolean value) {
24706 if (!value) {
24707 this.success = null;
24708 }
24709 }
24710
24711 public CentralDogmaException getE() {
24712 return this.e;
24713 }
24714
24715 public diffFile_result setE(CentralDogmaException e) {
24716 this.e = e;
24717 return this;
24718 }
24719
24720 public void unsetE() {
24721 this.e = null;
24722 }
24723
24724
24725 public boolean isSetE() {
24726 return this.e != null;
24727 }
24728
24729 public void setEIsSet(boolean value) {
24730 if (!value) {
24731 this.e = null;
24732 }
24733 }
24734
24735 public void setFieldValue(_Fields field, Object value) {
24736 switch (field) {
24737 case SUCCESS:
24738 if (value == null) {
24739 unsetSuccess();
24740 } else {
24741 setSuccess((DiffFileResult)value);
24742 }
24743 break;
24744
24745 case E:
24746 if (value == null) {
24747 unsetE();
24748 } else {
24749 setE((CentralDogmaException)value);
24750 }
24751 break;
24752
24753 }
24754 }
24755
24756 public Object getFieldValue(_Fields field) {
24757 switch (field) {
24758 case SUCCESS:
24759 return getSuccess();
24760
24761 case E:
24762 return getE();
24763
24764 }
24765 throw new IllegalStateException();
24766 }
24767
24768
24769 public boolean isSet(_Fields field) {
24770 if (field == null) {
24771 throw new IllegalArgumentException();
24772 }
24773
24774 switch (field) {
24775 case SUCCESS:
24776 return isSetSuccess();
24777 case E:
24778 return isSetE();
24779 }
24780 throw new IllegalStateException();
24781 }
24782
24783 @Override
24784 public boolean equals(Object that) {
24785 if (that == null)
24786 return false;
24787 if (that instanceof diffFile_result)
24788 return this.equals((diffFile_result)that);
24789 return false;
24790 }
24791
24792 public boolean equals(diffFile_result that) {
24793 if (that == null)
24794 return false;
24795
24796 boolean this_present_success = true && this.isSetSuccess();
24797 boolean that_present_success = true && that.isSetSuccess();
24798 if (this_present_success || that_present_success) {
24799 if (!(this_present_success && that_present_success))
24800 return false;
24801 if (!this.success.equals(that.success))
24802 return false;
24803 }
24804
24805 boolean this_present_e = true && this.isSetE();
24806 boolean that_present_e = true && that.isSetE();
24807 if (this_present_e || that_present_e) {
24808 if (!(this_present_e && that_present_e))
24809 return false;
24810 if (!this.e.equals(that.e))
24811 return false;
24812 }
24813
24814 return true;
24815 }
24816
24817 @Override
24818 public int hashCode() {
24819 List<Object> list = new ArrayList<Object>();
24820
24821 boolean present_success = true && (isSetSuccess());
24822 list.add(present_success);
24823 if (present_success)
24824 list.add(success);
24825
24826 boolean present_e = true && (isSetE());
24827 list.add(present_e);
24828 if (present_e)
24829 list.add(e);
24830
24831 return list.hashCode();
24832 }
24833
24834 @Override
24835 public int compareTo(diffFile_result other) {
24836 if (!getClass().equals(other.getClass())) {
24837 return getClass().getName().compareTo(other.getClass().getName());
24838 }
24839
24840 int lastComparison = 0;
24841
24842 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
24843 if (lastComparison != 0) {
24844 return lastComparison;
24845 }
24846 if (isSetSuccess()) {
24847 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
24848 if (lastComparison != 0) {
24849 return lastComparison;
24850 }
24851 }
24852 lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE());
24853 if (lastComparison != 0) {
24854 return lastComparison;
24855 }
24856 if (isSetE()) {
24857 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e);
24858 if (lastComparison != 0) {
24859 return lastComparison;
24860 }
24861 }
24862 return 0;
24863 }
24864
24865 public _Fields fieldForId(int fieldId) {
24866 return _Fields.findByThriftId(fieldId);
24867 }
24868
24869 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
24870 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
24871 }
24872
24873 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
24874 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
24875 }
24876
24877 @Override
24878 public String toString() {
24879 StringBuilder sb = new StringBuilder("diffFile_result(");
24880 boolean first = true;
24881
24882 sb.append("success:");
24883 if (this.success == null) {
24884 sb.append("null");
24885 } else {
24886 sb.append(this.success);
24887 }
24888 first = false;
24889 if (!first) sb.append(", ");
24890 sb.append("e:");
24891 if (this.e == null) {
24892 sb.append("null");
24893 } else {
24894 sb.append(this.e);
24895 }
24896 first = false;
24897 sb.append(")");
24898 return sb.toString();
24899 }
24900
24901 public void validate() throws org.apache.thrift.TException {
24902
24903
24904 if (success != null) {
24905 success.validate();
24906 }
24907 }
24908
24909 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
24910 try {
24911 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
24912 } catch (org.apache.thrift.TException te) {
24913 throw new java.io.IOException(te);
24914 }
24915 }
24916
24917 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
24918 try {
24919 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
24920 } catch (org.apache.thrift.TException te) {
24921 throw new java.io.IOException(te);
24922 }
24923 }
24924
24925 private static class diffFile_resultStandardSchemeFactory implements SchemeFactory {
24926 public diffFile_resultStandardScheme getScheme() {
24927 return new diffFile_resultStandardScheme();
24928 }
24929 }
24930
24931 private static class diffFile_resultStandardScheme extends StandardScheme<diffFile_result> {
24932
24933 public void read(org.apache.thrift.protocol.TProtocol iprot, diffFile_result struct) throws org.apache.thrift.TException {
24934 org.apache.thrift.protocol.TField schemeField;
24935 iprot.readStructBegin();
24936 while (true)
24937 {
24938 schemeField = iprot.readFieldBegin();
24939 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
24940 break;
24941 }
24942 switch (schemeField.id) {
24943 case 0:
24944 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
24945 struct.success = new DiffFileResult();
24946 struct.success.read(iprot);
24947 struct.setSuccessIsSet(true);
24948 } else {
24949 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
24950 }
24951 break;
24952 case 1:
24953 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
24954 struct.e = new CentralDogmaException();
24955 struct.e.read(iprot);
24956 struct.setEIsSet(true);
24957 } else {
24958 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
24959 }
24960 break;
24961 default:
24962 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
24963 }
24964 iprot.readFieldEnd();
24965 }
24966 iprot.readStructEnd();
24967
24968
24969 struct.validate();
24970 }
24971
24972 public void write(org.apache.thrift.protocol.TProtocol oprot, diffFile_result struct) throws org.apache.thrift.TException {
24973 struct.validate();
24974
24975 oprot.writeStructBegin(STRUCT_DESC);
24976 if (struct.success != null) {
24977 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
24978 struct.success.write(oprot);
24979 oprot.writeFieldEnd();
24980 }
24981 if (struct.e != null) {
24982 oprot.writeFieldBegin(E_FIELD_DESC);
24983 struct.e.write(oprot);
24984 oprot.writeFieldEnd();
24985 }
24986 oprot.writeFieldStop();
24987 oprot.writeStructEnd();
24988 }
24989
24990 }
24991
24992 private static class diffFile_resultTupleSchemeFactory implements SchemeFactory {
24993 public diffFile_resultTupleScheme getScheme() {
24994 return new diffFile_resultTupleScheme();
24995 }
24996 }
24997
24998 private static class diffFile_resultTupleScheme extends TupleScheme<diffFile_result> {
24999
25000 @Override
25001 public void write(org.apache.thrift.protocol.TProtocol prot, diffFile_result struct) throws org.apache.thrift.TException {
25002 TTupleProtocol oprot = (TTupleProtocol) prot;
25003 BitSet optionals = new BitSet();
25004 if (struct.isSetSuccess()) {
25005 optionals.set(0);
25006 }
25007 if (struct.isSetE()) {
25008 optionals.set(1);
25009 }
25010 oprot.writeBitSet(optionals, 2);
25011 if (struct.isSetSuccess()) {
25012 struct.success.write(oprot);
25013 }
25014 if (struct.isSetE()) {
25015 struct.e.write(oprot);
25016 }
25017 }
25018
25019 @Override
25020 public void read(org.apache.thrift.protocol.TProtocol prot, diffFile_result struct) throws org.apache.thrift.TException {
25021 TTupleProtocol iprot = (TTupleProtocol) prot;
25022 BitSet incoming = iprot.readBitSet(2);
25023 if (incoming.get(0)) {
25024 struct.success = new DiffFileResult();
25025 struct.success.read(iprot);
25026 struct.setSuccessIsSet(true);
25027 }
25028 if (incoming.get(1)) {
25029 struct.e = new CentralDogmaException();
25030 struct.e.read(iprot);
25031 struct.setEIsSet(true);
25032 }
25033 }
25034 }
25035
25036 }
25037
25038 public static class mergeFiles_args implements org.apache.thrift.TBase<mergeFiles_args, mergeFiles_args._Fields>, java.io.Serializable, Cloneable, Comparable<mergeFiles_args> {
25039 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("mergeFiles_args");
25040
25041 private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)1);
25042 private static final org.apache.thrift.protocol.TField REPOSITORY_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("repositoryName", org.apache.thrift.protocol.TType.STRING, (short)2);
25043 private static final org.apache.thrift.protocol.TField REVISION_FIELD_DESC = new org.apache.thrift.protocol.TField("revision", org.apache.thrift.protocol.TType.STRUCT, (short)3);
25044 private static final org.apache.thrift.protocol.TField MERGE_QUERY_FIELD_DESC = new org.apache.thrift.protocol.TField("mergeQuery", org.apache.thrift.protocol.TType.STRUCT, (short)4);
25045
25046 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
25047 static {
25048 schemes.put(StandardScheme.class, new mergeFiles_argsStandardSchemeFactory());
25049 schemes.put(TupleScheme.class, new mergeFiles_argsTupleSchemeFactory());
25050 }
25051
25052 public String projectName;
25053 public String repositoryName;
25054 public Revision revision;
25055 public MergeQuery mergeQuery;
25056
25057
25058 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
25059 PROJECT_NAME((short)1, "projectName"),
25060 REPOSITORY_NAME((short)2, "repositoryName"),
25061 REVISION((short)3, "revision"),
25062 MERGE_QUERY((short)4, "mergeQuery");
25063
25064 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
25065
25066 static {
25067 for (_Fields field : EnumSet.allOf(_Fields.class)) {
25068 byName.put(field.getFieldName(), field);
25069 }
25070 }
25071
25072
25073
25074
25075 public static _Fields findByThriftId(int fieldId) {
25076 switch(fieldId) {
25077 case 1:
25078 return PROJECT_NAME;
25079 case 2:
25080 return REPOSITORY_NAME;
25081 case 3:
25082 return REVISION;
25083 case 4:
25084 return MERGE_QUERY;
25085 default:
25086 return null;
25087 }
25088 }
25089
25090
25091
25092
25093
25094 public static _Fields findByThriftIdOrThrow(int fieldId) {
25095 _Fields fields = findByThriftId(fieldId);
25096 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
25097 return fields;
25098 }
25099
25100
25101
25102
25103 public static _Fields findByName(String name) {
25104 return byName.get(name);
25105 }
25106
25107 private final short _thriftId;
25108 private final String _fieldName;
25109
25110 _Fields(short thriftId, String fieldName) {
25111 _thriftId = thriftId;
25112 _fieldName = fieldName;
25113 }
25114
25115 public short getThriftFieldId() {
25116 return _thriftId;
25117 }
25118
25119 public String getFieldName() {
25120 return _fieldName;
25121 }
25122 }
25123
25124
25125 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
25126 static {
25127 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
25128 tmpMap.put(_Fields.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", org.apache.thrift.TFieldRequirementType.DEFAULT,
25129 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
25130 tmpMap.put(_Fields.REPOSITORY_NAME, new org.apache.thrift.meta_data.FieldMetaData("repositoryName", org.apache.thrift.TFieldRequirementType.DEFAULT,
25131 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
25132 tmpMap.put(_Fields.REVISION, new org.apache.thrift.meta_data.FieldMetaData("revision", org.apache.thrift.TFieldRequirementType.DEFAULT,
25133 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Revision.class)));
25134 tmpMap.put(_Fields.MERGE_QUERY, new org.apache.thrift.meta_data.FieldMetaData("mergeQuery", org.apache.thrift.TFieldRequirementType.DEFAULT,
25135 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, MergeQuery.class)));
25136 metaDataMap = Collections.unmodifiableMap(tmpMap);
25137 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(mergeFiles_args.class, metaDataMap);
25138 }
25139
25140 public mergeFiles_args() {
25141 }
25142
25143 public mergeFiles_args(
25144 String projectName,
25145 String repositoryName,
25146 Revision revision,
25147 MergeQuery mergeQuery)
25148 {
25149 this();
25150 this.projectName = projectName;
25151 this.repositoryName = repositoryName;
25152 this.revision = revision;
25153 this.mergeQuery = mergeQuery;
25154 }
25155
25156
25157
25158
25159 public mergeFiles_args(mergeFiles_args other) {
25160 if (other.isSetProjectName()) {
25161 this.projectName = other.projectName;
25162 }
25163 if (other.isSetRepositoryName()) {
25164 this.repositoryName = other.repositoryName;
25165 }
25166 if (other.isSetRevision()) {
25167 this.revision = new Revision(other.revision);
25168 }
25169 if (other.isSetMergeQuery()) {
25170 this.mergeQuery = new MergeQuery(other.mergeQuery);
25171 }
25172 }
25173
25174 public mergeFiles_args deepCopy() {
25175 return new mergeFiles_args(this);
25176 }
25177
25178 @Override
25179 public void clear() {
25180 this.projectName = null;
25181 this.repositoryName = null;
25182 this.revision = null;
25183 this.mergeQuery = null;
25184 }
25185
25186 public String getProjectName() {
25187 return this.projectName;
25188 }
25189
25190 public mergeFiles_args setProjectName(String projectName) {
25191 this.projectName = projectName;
25192 return this;
25193 }
25194
25195 public void unsetProjectName() {
25196 this.projectName = null;
25197 }
25198
25199
25200 public boolean isSetProjectName() {
25201 return this.projectName != null;
25202 }
25203
25204 public void setProjectNameIsSet(boolean value) {
25205 if (!value) {
25206 this.projectName = null;
25207 }
25208 }
25209
25210 public String getRepositoryName() {
25211 return this.repositoryName;
25212 }
25213
25214 public mergeFiles_args setRepositoryName(String repositoryName) {
25215 this.repositoryName = repositoryName;
25216 return this;
25217 }
25218
25219 public void unsetRepositoryName() {
25220 this.repositoryName = null;
25221 }
25222
25223
25224 public boolean isSetRepositoryName() {
25225 return this.repositoryName != null;
25226 }
25227
25228 public void setRepositoryNameIsSet(boolean value) {
25229 if (!value) {
25230 this.repositoryName = null;
25231 }
25232 }
25233
25234 public Revision getRevision() {
25235 return this.revision;
25236 }
25237
25238 public mergeFiles_args setRevision(Revision revision) {
25239 this.revision = revision;
25240 return this;
25241 }
25242
25243 public void unsetRevision() {
25244 this.revision = null;
25245 }
25246
25247
25248 public boolean isSetRevision() {
25249 return this.revision != null;
25250 }
25251
25252 public void setRevisionIsSet(boolean value) {
25253 if (!value) {
25254 this.revision = null;
25255 }
25256 }
25257
25258 public MergeQuery getMergeQuery() {
25259 return this.mergeQuery;
25260 }
25261
25262 public mergeFiles_args setMergeQuery(MergeQuery mergeQuery) {
25263 this.mergeQuery = mergeQuery;
25264 return this;
25265 }
25266
25267 public void unsetMergeQuery() {
25268 this.mergeQuery = null;
25269 }
25270
25271
25272 public boolean isSetMergeQuery() {
25273 return this.mergeQuery != null;
25274 }
25275
25276 public void setMergeQueryIsSet(boolean value) {
25277 if (!value) {
25278 this.mergeQuery = null;
25279 }
25280 }
25281
25282 public void setFieldValue(_Fields field, Object value) {
25283 switch (field) {
25284 case PROJECT_NAME:
25285 if (value == null) {
25286 unsetProjectName();
25287 } else {
25288 setProjectName((String)value);
25289 }
25290 break;
25291
25292 case REPOSITORY_NAME:
25293 if (value == null) {
25294 unsetRepositoryName();
25295 } else {
25296 setRepositoryName((String)value);
25297 }
25298 break;
25299
25300 case REVISION:
25301 if (value == null) {
25302 unsetRevision();
25303 } else {
25304 setRevision((Revision)value);
25305 }
25306 break;
25307
25308 case MERGE_QUERY:
25309 if (value == null) {
25310 unsetMergeQuery();
25311 } else {
25312 setMergeQuery((MergeQuery)value);
25313 }
25314 break;
25315
25316 }
25317 }
25318
25319 public Object getFieldValue(_Fields field) {
25320 switch (field) {
25321 case PROJECT_NAME:
25322 return getProjectName();
25323
25324 case REPOSITORY_NAME:
25325 return getRepositoryName();
25326
25327 case REVISION:
25328 return getRevision();
25329
25330 case MERGE_QUERY:
25331 return getMergeQuery();
25332
25333 }
25334 throw new IllegalStateException();
25335 }
25336
25337
25338 public boolean isSet(_Fields field) {
25339 if (field == null) {
25340 throw new IllegalArgumentException();
25341 }
25342
25343 switch (field) {
25344 case PROJECT_NAME:
25345 return isSetProjectName();
25346 case REPOSITORY_NAME:
25347 return isSetRepositoryName();
25348 case REVISION:
25349 return isSetRevision();
25350 case MERGE_QUERY:
25351 return isSetMergeQuery();
25352 }
25353 throw new IllegalStateException();
25354 }
25355
25356 @Override
25357 public boolean equals(Object that) {
25358 if (that == null)
25359 return false;
25360 if (that instanceof mergeFiles_args)
25361 return this.equals((mergeFiles_args)that);
25362 return false;
25363 }
25364
25365 public boolean equals(mergeFiles_args that) {
25366 if (that == null)
25367 return false;
25368
25369 boolean this_present_projectName = true && this.isSetProjectName();
25370 boolean that_present_projectName = true && that.isSetProjectName();
25371 if (this_present_projectName || that_present_projectName) {
25372 if (!(this_present_projectName && that_present_projectName))
25373 return false;
25374 if (!this.projectName.equals(that.projectName))
25375 return false;
25376 }
25377
25378 boolean this_present_repositoryName = true && this.isSetRepositoryName();
25379 boolean that_present_repositoryName = true && that.isSetRepositoryName();
25380 if (this_present_repositoryName || that_present_repositoryName) {
25381 if (!(this_present_repositoryName && that_present_repositoryName))
25382 return false;
25383 if (!this.repositoryName.equals(that.repositoryName))
25384 return false;
25385 }
25386
25387 boolean this_present_revision = true && this.isSetRevision();
25388 boolean that_present_revision = true && that.isSetRevision();
25389 if (this_present_revision || that_present_revision) {
25390 if (!(this_present_revision && that_present_revision))
25391 return false;
25392 if (!this.revision.equals(that.revision))
25393 return false;
25394 }
25395
25396 boolean this_present_mergeQuery = true && this.isSetMergeQuery();
25397 boolean that_present_mergeQuery = true && that.isSetMergeQuery();
25398 if (this_present_mergeQuery || that_present_mergeQuery) {
25399 if (!(this_present_mergeQuery && that_present_mergeQuery))
25400 return false;
25401 if (!this.mergeQuery.equals(that.mergeQuery))
25402 return false;
25403 }
25404
25405 return true;
25406 }
25407
25408 @Override
25409 public int hashCode() {
25410 List<Object> list = new ArrayList<Object>();
25411
25412 boolean present_projectName = true && (isSetProjectName());
25413 list.add(present_projectName);
25414 if (present_projectName)
25415 list.add(projectName);
25416
25417 boolean present_repositoryName = true && (isSetRepositoryName());
25418 list.add(present_repositoryName);
25419 if (present_repositoryName)
25420 list.add(repositoryName);
25421
25422 boolean present_revision = true && (isSetRevision());
25423 list.add(present_revision);
25424 if (present_revision)
25425 list.add(revision);
25426
25427 boolean present_mergeQuery = true && (isSetMergeQuery());
25428 list.add(present_mergeQuery);
25429 if (present_mergeQuery)
25430 list.add(mergeQuery);
25431
25432 return list.hashCode();
25433 }
25434
25435 @Override
25436 public int compareTo(mergeFiles_args other) {
25437 if (!getClass().equals(other.getClass())) {
25438 return getClass().getName().compareTo(other.getClass().getName());
25439 }
25440
25441 int lastComparison = 0;
25442
25443 lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName());
25444 if (lastComparison != 0) {
25445 return lastComparison;
25446 }
25447 if (isSetProjectName()) {
25448 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName);
25449 if (lastComparison != 0) {
25450 return lastComparison;
25451 }
25452 }
25453 lastComparison = Boolean.valueOf(isSetRepositoryName()).compareTo(other.isSetRepositoryName());
25454 if (lastComparison != 0) {
25455 return lastComparison;
25456 }
25457 if (isSetRepositoryName()) {
25458 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.repositoryName, other.repositoryName);
25459 if (lastComparison != 0) {
25460 return lastComparison;
25461 }
25462 }
25463 lastComparison = Boolean.valueOf(isSetRevision()).compareTo(other.isSetRevision());
25464 if (lastComparison != 0) {
25465 return lastComparison;
25466 }
25467 if (isSetRevision()) {
25468 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.revision, other.revision);
25469 if (lastComparison != 0) {
25470 return lastComparison;
25471 }
25472 }
25473 lastComparison = Boolean.valueOf(isSetMergeQuery()).compareTo(other.isSetMergeQuery());
25474 if (lastComparison != 0) {
25475 return lastComparison;
25476 }
25477 if (isSetMergeQuery()) {
25478 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mergeQuery, other.mergeQuery);
25479 if (lastComparison != 0) {
25480 return lastComparison;
25481 }
25482 }
25483 return 0;
25484 }
25485
25486 public _Fields fieldForId(int fieldId) {
25487 return _Fields.findByThriftId(fieldId);
25488 }
25489
25490 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
25491 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
25492 }
25493
25494 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
25495 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
25496 }
25497
25498 @Override
25499 public String toString() {
25500 StringBuilder sb = new StringBuilder("mergeFiles_args(");
25501 boolean first = true;
25502
25503 sb.append("projectName:");
25504 if (this.projectName == null) {
25505 sb.append("null");
25506 } else {
25507 sb.append(this.projectName);
25508 }
25509 first = false;
25510 if (!first) sb.append(", ");
25511 sb.append("repositoryName:");
25512 if (this.repositoryName == null) {
25513 sb.append("null");
25514 } else {
25515 sb.append(this.repositoryName);
25516 }
25517 first = false;
25518 if (!first) sb.append(", ");
25519 sb.append("revision:");
25520 if (this.revision == null) {
25521 sb.append("null");
25522 } else {
25523 sb.append(this.revision);
25524 }
25525 first = false;
25526 if (!first) sb.append(", ");
25527 sb.append("mergeQuery:");
25528 if (this.mergeQuery == null) {
25529 sb.append("null");
25530 } else {
25531 sb.append(this.mergeQuery);
25532 }
25533 first = false;
25534 sb.append(")");
25535 return sb.toString();
25536 }
25537
25538 public void validate() throws org.apache.thrift.TException {
25539
25540
25541 if (revision != null) {
25542 revision.validate();
25543 }
25544 if (mergeQuery != null) {
25545 mergeQuery.validate();
25546 }
25547 }
25548
25549 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
25550 try {
25551 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
25552 } catch (org.apache.thrift.TException te) {
25553 throw new java.io.IOException(te);
25554 }
25555 }
25556
25557 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
25558 try {
25559 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
25560 } catch (org.apache.thrift.TException te) {
25561 throw new java.io.IOException(te);
25562 }
25563 }
25564
25565 private static class mergeFiles_argsStandardSchemeFactory implements SchemeFactory {
25566 public mergeFiles_argsStandardScheme getScheme() {
25567 return new mergeFiles_argsStandardScheme();
25568 }
25569 }
25570
25571 private static class mergeFiles_argsStandardScheme extends StandardScheme<mergeFiles_args> {
25572
25573 public void read(org.apache.thrift.protocol.TProtocol iprot, mergeFiles_args struct) throws org.apache.thrift.TException {
25574 org.apache.thrift.protocol.TField schemeField;
25575 iprot.readStructBegin();
25576 while (true)
25577 {
25578 schemeField = iprot.readFieldBegin();
25579 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
25580 break;
25581 }
25582 switch (schemeField.id) {
25583 case 1:
25584 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
25585 struct.projectName = iprot.readString();
25586 struct.setProjectNameIsSet(true);
25587 } else {
25588 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
25589 }
25590 break;
25591 case 2:
25592 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
25593 struct.repositoryName = iprot.readString();
25594 struct.setRepositoryNameIsSet(true);
25595 } else {
25596 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
25597 }
25598 break;
25599 case 3:
25600 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
25601 struct.revision = new Revision();
25602 struct.revision.read(iprot);
25603 struct.setRevisionIsSet(true);
25604 } else {
25605 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
25606 }
25607 break;
25608 case 4:
25609 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
25610 struct.mergeQuery = new MergeQuery();
25611 struct.mergeQuery.read(iprot);
25612 struct.setMergeQueryIsSet(true);
25613 } else {
25614 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
25615 }
25616 break;
25617 default:
25618 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
25619 }
25620 iprot.readFieldEnd();
25621 }
25622 iprot.readStructEnd();
25623
25624
25625 struct.validate();
25626 }
25627
25628 public void write(org.apache.thrift.protocol.TProtocol oprot, mergeFiles_args struct) throws org.apache.thrift.TException {
25629 struct.validate();
25630
25631 oprot.writeStructBegin(STRUCT_DESC);
25632 if (struct.projectName != null) {
25633 oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC);
25634 oprot.writeString(struct.projectName);
25635 oprot.writeFieldEnd();
25636 }
25637 if (struct.repositoryName != null) {
25638 oprot.writeFieldBegin(REPOSITORY_NAME_FIELD_DESC);
25639 oprot.writeString(struct.repositoryName);
25640 oprot.writeFieldEnd();
25641 }
25642 if (struct.revision != null) {
25643 oprot.writeFieldBegin(REVISION_FIELD_DESC);
25644 struct.revision.write(oprot);
25645 oprot.writeFieldEnd();
25646 }
25647 if (struct.mergeQuery != null) {
25648 oprot.writeFieldBegin(MERGE_QUERY_FIELD_DESC);
25649 struct.mergeQuery.write(oprot);
25650 oprot.writeFieldEnd();
25651 }
25652 oprot.writeFieldStop();
25653 oprot.writeStructEnd();
25654 }
25655
25656 }
25657
25658 private static class mergeFiles_argsTupleSchemeFactory implements SchemeFactory {
25659 public mergeFiles_argsTupleScheme getScheme() {
25660 return new mergeFiles_argsTupleScheme();
25661 }
25662 }
25663
25664 private static class mergeFiles_argsTupleScheme extends TupleScheme<mergeFiles_args> {
25665
25666 @Override
25667 public void write(org.apache.thrift.protocol.TProtocol prot, mergeFiles_args struct) throws org.apache.thrift.TException {
25668 TTupleProtocol oprot = (TTupleProtocol) prot;
25669 BitSet optionals = new BitSet();
25670 if (struct.isSetProjectName()) {
25671 optionals.set(0);
25672 }
25673 if (struct.isSetRepositoryName()) {
25674 optionals.set(1);
25675 }
25676 if (struct.isSetRevision()) {
25677 optionals.set(2);
25678 }
25679 if (struct.isSetMergeQuery()) {
25680 optionals.set(3);
25681 }
25682 oprot.writeBitSet(optionals, 4);
25683 if (struct.isSetProjectName()) {
25684 oprot.writeString(struct.projectName);
25685 }
25686 if (struct.isSetRepositoryName()) {
25687 oprot.writeString(struct.repositoryName);
25688 }
25689 if (struct.isSetRevision()) {
25690 struct.revision.write(oprot);
25691 }
25692 if (struct.isSetMergeQuery()) {
25693 struct.mergeQuery.write(oprot);
25694 }
25695 }
25696
25697 @Override
25698 public void read(org.apache.thrift.protocol.TProtocol prot, mergeFiles_args struct) throws org.apache.thrift.TException {
25699 TTupleProtocol iprot = (TTupleProtocol) prot;
25700 BitSet incoming = iprot.readBitSet(4);
25701 if (incoming.get(0)) {
25702 struct.projectName = iprot.readString();
25703 struct.setProjectNameIsSet(true);
25704 }
25705 if (incoming.get(1)) {
25706 struct.repositoryName = iprot.readString();
25707 struct.setRepositoryNameIsSet(true);
25708 }
25709 if (incoming.get(2)) {
25710 struct.revision = new Revision();
25711 struct.revision.read(iprot);
25712 struct.setRevisionIsSet(true);
25713 }
25714 if (incoming.get(3)) {
25715 struct.mergeQuery = new MergeQuery();
25716 struct.mergeQuery.read(iprot);
25717 struct.setMergeQueryIsSet(true);
25718 }
25719 }
25720 }
25721
25722 }
25723
25724 public static class mergeFiles_result implements org.apache.thrift.TBase<mergeFiles_result, mergeFiles_result._Fields>, java.io.Serializable, Cloneable, Comparable<mergeFiles_result> {
25725 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("mergeFiles_result");
25726
25727 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
25728 private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
25729
25730 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
25731 static {
25732 schemes.put(StandardScheme.class, new mergeFiles_resultStandardSchemeFactory());
25733 schemes.put(TupleScheme.class, new mergeFiles_resultTupleSchemeFactory());
25734 }
25735
25736 public MergedEntry success;
25737 public CentralDogmaException e;
25738
25739
25740 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
25741 SUCCESS((short)0, "success"),
25742 E((short)1, "e");
25743
25744 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
25745
25746 static {
25747 for (_Fields field : EnumSet.allOf(_Fields.class)) {
25748 byName.put(field.getFieldName(), field);
25749 }
25750 }
25751
25752
25753
25754
25755 public static _Fields findByThriftId(int fieldId) {
25756 switch(fieldId) {
25757 case 0:
25758 return SUCCESS;
25759 case 1:
25760 return E;
25761 default:
25762 return null;
25763 }
25764 }
25765
25766
25767
25768
25769
25770 public static _Fields findByThriftIdOrThrow(int fieldId) {
25771 _Fields fields = findByThriftId(fieldId);
25772 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
25773 return fields;
25774 }
25775
25776
25777
25778
25779 public static _Fields findByName(String name) {
25780 return byName.get(name);
25781 }
25782
25783 private final short _thriftId;
25784 private final String _fieldName;
25785
25786 _Fields(short thriftId, String fieldName) {
25787 _thriftId = thriftId;
25788 _fieldName = fieldName;
25789 }
25790
25791 public short getThriftFieldId() {
25792 return _thriftId;
25793 }
25794
25795 public String getFieldName() {
25796 return _fieldName;
25797 }
25798 }
25799
25800
25801 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
25802 static {
25803 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
25804 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
25805 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, MergedEntry.class)));
25806 tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
25807 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
25808 metaDataMap = Collections.unmodifiableMap(tmpMap);
25809 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(mergeFiles_result.class, metaDataMap);
25810 }
25811
25812 public mergeFiles_result() {
25813 }
25814
25815 public mergeFiles_result(
25816 MergedEntry success,
25817 CentralDogmaException e)
25818 {
25819 this();
25820 this.success = success;
25821 this.e = e;
25822 }
25823
25824
25825
25826
25827 public mergeFiles_result(mergeFiles_result other) {
25828 if (other.isSetSuccess()) {
25829 this.success = new MergedEntry(other.success);
25830 }
25831 if (other.isSetE()) {
25832 this.e = new CentralDogmaException(other.e);
25833 }
25834 }
25835
25836 public mergeFiles_result deepCopy() {
25837 return new mergeFiles_result(this);
25838 }
25839
25840 @Override
25841 public void clear() {
25842 this.success = null;
25843 this.e = null;
25844 }
25845
25846 public MergedEntry getSuccess() {
25847 return this.success;
25848 }
25849
25850 public mergeFiles_result setSuccess(MergedEntry success) {
25851 this.success = success;
25852 return this;
25853 }
25854
25855 public void unsetSuccess() {
25856 this.success = null;
25857 }
25858
25859
25860 public boolean isSetSuccess() {
25861 return this.success != null;
25862 }
25863
25864 public void setSuccessIsSet(boolean value) {
25865 if (!value) {
25866 this.success = null;
25867 }
25868 }
25869
25870 public CentralDogmaException getE() {
25871 return this.e;
25872 }
25873
25874 public mergeFiles_result setE(CentralDogmaException e) {
25875 this.e = e;
25876 return this;
25877 }
25878
25879 public void unsetE() {
25880 this.e = null;
25881 }
25882
25883
25884 public boolean isSetE() {
25885 return this.e != null;
25886 }
25887
25888 public void setEIsSet(boolean value) {
25889 if (!value) {
25890 this.e = null;
25891 }
25892 }
25893
25894 public void setFieldValue(_Fields field, Object value) {
25895 switch (field) {
25896 case SUCCESS:
25897 if (value == null) {
25898 unsetSuccess();
25899 } else {
25900 setSuccess((MergedEntry)value);
25901 }
25902 break;
25903
25904 case E:
25905 if (value == null) {
25906 unsetE();
25907 } else {
25908 setE((CentralDogmaException)value);
25909 }
25910 break;
25911
25912 }
25913 }
25914
25915 public Object getFieldValue(_Fields field) {
25916 switch (field) {
25917 case SUCCESS:
25918 return getSuccess();
25919
25920 case E:
25921 return getE();
25922
25923 }
25924 throw new IllegalStateException();
25925 }
25926
25927
25928 public boolean isSet(_Fields field) {
25929 if (field == null) {
25930 throw new IllegalArgumentException();
25931 }
25932
25933 switch (field) {
25934 case SUCCESS:
25935 return isSetSuccess();
25936 case E:
25937 return isSetE();
25938 }
25939 throw new IllegalStateException();
25940 }
25941
25942 @Override
25943 public boolean equals(Object that) {
25944 if (that == null)
25945 return false;
25946 if (that instanceof mergeFiles_result)
25947 return this.equals((mergeFiles_result)that);
25948 return false;
25949 }
25950
25951 public boolean equals(mergeFiles_result that) {
25952 if (that == null)
25953 return false;
25954
25955 boolean this_present_success = true && this.isSetSuccess();
25956 boolean that_present_success = true && that.isSetSuccess();
25957 if (this_present_success || that_present_success) {
25958 if (!(this_present_success && that_present_success))
25959 return false;
25960 if (!this.success.equals(that.success))
25961 return false;
25962 }
25963
25964 boolean this_present_e = true && this.isSetE();
25965 boolean that_present_e = true && that.isSetE();
25966 if (this_present_e || that_present_e) {
25967 if (!(this_present_e && that_present_e))
25968 return false;
25969 if (!this.e.equals(that.e))
25970 return false;
25971 }
25972
25973 return true;
25974 }
25975
25976 @Override
25977 public int hashCode() {
25978 List<Object> list = new ArrayList<Object>();
25979
25980 boolean present_success = true && (isSetSuccess());
25981 list.add(present_success);
25982 if (present_success)
25983 list.add(success);
25984
25985 boolean present_e = true && (isSetE());
25986 list.add(present_e);
25987 if (present_e)
25988 list.add(e);
25989
25990 return list.hashCode();
25991 }
25992
25993 @Override
25994 public int compareTo(mergeFiles_result other) {
25995 if (!getClass().equals(other.getClass())) {
25996 return getClass().getName().compareTo(other.getClass().getName());
25997 }
25998
25999 int lastComparison = 0;
26000
26001 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
26002 if (lastComparison != 0) {
26003 return lastComparison;
26004 }
26005 if (isSetSuccess()) {
26006 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
26007 if (lastComparison != 0) {
26008 return lastComparison;
26009 }
26010 }
26011 lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE());
26012 if (lastComparison != 0) {
26013 return lastComparison;
26014 }
26015 if (isSetE()) {
26016 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e);
26017 if (lastComparison != 0) {
26018 return lastComparison;
26019 }
26020 }
26021 return 0;
26022 }
26023
26024 public _Fields fieldForId(int fieldId) {
26025 return _Fields.findByThriftId(fieldId);
26026 }
26027
26028 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
26029 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
26030 }
26031
26032 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
26033 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
26034 }
26035
26036 @Override
26037 public String toString() {
26038 StringBuilder sb = new StringBuilder("mergeFiles_result(");
26039 boolean first = true;
26040
26041 sb.append("success:");
26042 if (this.success == null) {
26043 sb.append("null");
26044 } else {
26045 sb.append(this.success);
26046 }
26047 first = false;
26048 if (!first) sb.append(", ");
26049 sb.append("e:");
26050 if (this.e == null) {
26051 sb.append("null");
26052 } else {
26053 sb.append(this.e);
26054 }
26055 first = false;
26056 sb.append(")");
26057 return sb.toString();
26058 }
26059
26060 public void validate() throws org.apache.thrift.TException {
26061
26062
26063 if (success != null) {
26064 success.validate();
26065 }
26066 }
26067
26068 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
26069 try {
26070 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
26071 } catch (org.apache.thrift.TException te) {
26072 throw new java.io.IOException(te);
26073 }
26074 }
26075
26076 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
26077 try {
26078 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
26079 } catch (org.apache.thrift.TException te) {
26080 throw new java.io.IOException(te);
26081 }
26082 }
26083
26084 private static class mergeFiles_resultStandardSchemeFactory implements SchemeFactory {
26085 public mergeFiles_resultStandardScheme getScheme() {
26086 return new mergeFiles_resultStandardScheme();
26087 }
26088 }
26089
26090 private static class mergeFiles_resultStandardScheme extends StandardScheme<mergeFiles_result> {
26091
26092 public void read(org.apache.thrift.protocol.TProtocol iprot, mergeFiles_result struct) throws org.apache.thrift.TException {
26093 org.apache.thrift.protocol.TField schemeField;
26094 iprot.readStructBegin();
26095 while (true)
26096 {
26097 schemeField = iprot.readFieldBegin();
26098 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
26099 break;
26100 }
26101 switch (schemeField.id) {
26102 case 0:
26103 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
26104 struct.success = new MergedEntry();
26105 struct.success.read(iprot);
26106 struct.setSuccessIsSet(true);
26107 } else {
26108 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
26109 }
26110 break;
26111 case 1:
26112 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
26113 struct.e = new CentralDogmaException();
26114 struct.e.read(iprot);
26115 struct.setEIsSet(true);
26116 } else {
26117 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
26118 }
26119 break;
26120 default:
26121 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
26122 }
26123 iprot.readFieldEnd();
26124 }
26125 iprot.readStructEnd();
26126
26127
26128 struct.validate();
26129 }
26130
26131 public void write(org.apache.thrift.protocol.TProtocol oprot, mergeFiles_result struct) throws org.apache.thrift.TException {
26132 struct.validate();
26133
26134 oprot.writeStructBegin(STRUCT_DESC);
26135 if (struct.success != null) {
26136 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
26137 struct.success.write(oprot);
26138 oprot.writeFieldEnd();
26139 }
26140 if (struct.e != null) {
26141 oprot.writeFieldBegin(E_FIELD_DESC);
26142 struct.e.write(oprot);
26143 oprot.writeFieldEnd();
26144 }
26145 oprot.writeFieldStop();
26146 oprot.writeStructEnd();
26147 }
26148
26149 }
26150
26151 private static class mergeFiles_resultTupleSchemeFactory implements SchemeFactory {
26152 public mergeFiles_resultTupleScheme getScheme() {
26153 return new mergeFiles_resultTupleScheme();
26154 }
26155 }
26156
26157 private static class mergeFiles_resultTupleScheme extends TupleScheme<mergeFiles_result> {
26158
26159 @Override
26160 public void write(org.apache.thrift.protocol.TProtocol prot, mergeFiles_result struct) throws org.apache.thrift.TException {
26161 TTupleProtocol oprot = (TTupleProtocol) prot;
26162 BitSet optionals = new BitSet();
26163 if (struct.isSetSuccess()) {
26164 optionals.set(0);
26165 }
26166 if (struct.isSetE()) {
26167 optionals.set(1);
26168 }
26169 oprot.writeBitSet(optionals, 2);
26170 if (struct.isSetSuccess()) {
26171 struct.success.write(oprot);
26172 }
26173 if (struct.isSetE()) {
26174 struct.e.write(oprot);
26175 }
26176 }
26177
26178 @Override
26179 public void read(org.apache.thrift.protocol.TProtocol prot, mergeFiles_result struct) throws org.apache.thrift.TException {
26180 TTupleProtocol iprot = (TTupleProtocol) prot;
26181 BitSet incoming = iprot.readBitSet(2);
26182 if (incoming.get(0)) {
26183 struct.success = new MergedEntry();
26184 struct.success.read(iprot);
26185 struct.setSuccessIsSet(true);
26186 }
26187 if (incoming.get(1)) {
26188 struct.e = new CentralDogmaException();
26189 struct.e.read(iprot);
26190 struct.setEIsSet(true);
26191 }
26192 }
26193 }
26194
26195 }
26196
26197 public static class watchRepository_args implements org.apache.thrift.TBase<watchRepository_args, watchRepository_args._Fields>, java.io.Serializable, Cloneable, Comparable<watchRepository_args> {
26198 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("watchRepository_args");
26199
26200 private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)1);
26201 private static final org.apache.thrift.protocol.TField REPOSITORY_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("repositoryName", org.apache.thrift.protocol.TType.STRING, (short)2);
26202 private static final org.apache.thrift.protocol.TField LAST_KNOWN_REVISION_FIELD_DESC = new org.apache.thrift.protocol.TField("lastKnownRevision", org.apache.thrift.protocol.TType.STRUCT, (short)3);
26203 private static final org.apache.thrift.protocol.TField PATH_PATTERN_FIELD_DESC = new org.apache.thrift.protocol.TField("pathPattern", org.apache.thrift.protocol.TType.STRING, (short)4);
26204 private static final org.apache.thrift.protocol.TField TIMEOUT_MILLIS_FIELD_DESC = new org.apache.thrift.protocol.TField("timeoutMillis", org.apache.thrift.protocol.TType.I64, (short)5);
26205
26206 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
26207 static {
26208 schemes.put(StandardScheme.class, new watchRepository_argsStandardSchemeFactory());
26209 schemes.put(TupleScheme.class, new watchRepository_argsTupleSchemeFactory());
26210 }
26211
26212 public String projectName;
26213 public String repositoryName;
26214 public Revision lastKnownRevision;
26215 public String pathPattern;
26216 public long timeoutMillis;
26217
26218
26219 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
26220 PROJECT_NAME((short)1, "projectName"),
26221 REPOSITORY_NAME((short)2, "repositoryName"),
26222 LAST_KNOWN_REVISION((short)3, "lastKnownRevision"),
26223 PATH_PATTERN((short)4, "pathPattern"),
26224 TIMEOUT_MILLIS((short)5, "timeoutMillis");
26225
26226 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
26227
26228 static {
26229 for (_Fields field : EnumSet.allOf(_Fields.class)) {
26230 byName.put(field.getFieldName(), field);
26231 }
26232 }
26233
26234
26235
26236
26237 public static _Fields findByThriftId(int fieldId) {
26238 switch(fieldId) {
26239 case 1:
26240 return PROJECT_NAME;
26241 case 2:
26242 return REPOSITORY_NAME;
26243 case 3:
26244 return LAST_KNOWN_REVISION;
26245 case 4:
26246 return PATH_PATTERN;
26247 case 5:
26248 return TIMEOUT_MILLIS;
26249 default:
26250 return null;
26251 }
26252 }
26253
26254
26255
26256
26257
26258 public static _Fields findByThriftIdOrThrow(int fieldId) {
26259 _Fields fields = findByThriftId(fieldId);
26260 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
26261 return fields;
26262 }
26263
26264
26265
26266
26267 public static _Fields findByName(String name) {
26268 return byName.get(name);
26269 }
26270
26271 private final short _thriftId;
26272 private final String _fieldName;
26273
26274 _Fields(short thriftId, String fieldName) {
26275 _thriftId = thriftId;
26276 _fieldName = fieldName;
26277 }
26278
26279 public short getThriftFieldId() {
26280 return _thriftId;
26281 }
26282
26283 public String getFieldName() {
26284 return _fieldName;
26285 }
26286 }
26287
26288
26289 private static final int __TIMEOUTMILLIS_ISSET_ID = 0;
26290 private byte __isset_bitfield = 0;
26291 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
26292 static {
26293 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
26294 tmpMap.put(_Fields.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", org.apache.thrift.TFieldRequirementType.DEFAULT,
26295 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
26296 tmpMap.put(_Fields.REPOSITORY_NAME, new org.apache.thrift.meta_data.FieldMetaData("repositoryName", org.apache.thrift.TFieldRequirementType.DEFAULT,
26297 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
26298 tmpMap.put(_Fields.LAST_KNOWN_REVISION, new org.apache.thrift.meta_data.FieldMetaData("lastKnownRevision", org.apache.thrift.TFieldRequirementType.DEFAULT,
26299 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Revision.class)));
26300 tmpMap.put(_Fields.PATH_PATTERN, new org.apache.thrift.meta_data.FieldMetaData("pathPattern", org.apache.thrift.TFieldRequirementType.DEFAULT,
26301 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
26302 tmpMap.put(_Fields.TIMEOUT_MILLIS, new org.apache.thrift.meta_data.FieldMetaData("timeoutMillis", org.apache.thrift.TFieldRequirementType.DEFAULT,
26303 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
26304 metaDataMap = Collections.unmodifiableMap(tmpMap);
26305 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(watchRepository_args.class, metaDataMap);
26306 }
26307
26308 public watchRepository_args() {
26309 }
26310
26311 public watchRepository_args(
26312 String projectName,
26313 String repositoryName,
26314 Revision lastKnownRevision,
26315 String pathPattern,
26316 long timeoutMillis)
26317 {
26318 this();
26319 this.projectName = projectName;
26320 this.repositoryName = repositoryName;
26321 this.lastKnownRevision = lastKnownRevision;
26322 this.pathPattern = pathPattern;
26323 this.timeoutMillis = timeoutMillis;
26324 setTimeoutMillisIsSet(true);
26325 }
26326
26327
26328
26329
26330 public watchRepository_args(watchRepository_args other) {
26331 __isset_bitfield = other.__isset_bitfield;
26332 if (other.isSetProjectName()) {
26333 this.projectName = other.projectName;
26334 }
26335 if (other.isSetRepositoryName()) {
26336 this.repositoryName = other.repositoryName;
26337 }
26338 if (other.isSetLastKnownRevision()) {
26339 this.lastKnownRevision = new Revision(other.lastKnownRevision);
26340 }
26341 if (other.isSetPathPattern()) {
26342 this.pathPattern = other.pathPattern;
26343 }
26344 this.timeoutMillis = other.timeoutMillis;
26345 }
26346
26347 public watchRepository_args deepCopy() {
26348 return new watchRepository_args(this);
26349 }
26350
26351 @Override
26352 public void clear() {
26353 this.projectName = null;
26354 this.repositoryName = null;
26355 this.lastKnownRevision = null;
26356 this.pathPattern = null;
26357 setTimeoutMillisIsSet(false);
26358 this.timeoutMillis = 0;
26359 }
26360
26361 public String getProjectName() {
26362 return this.projectName;
26363 }
26364
26365 public watchRepository_args setProjectName(String projectName) {
26366 this.projectName = projectName;
26367 return this;
26368 }
26369
26370 public void unsetProjectName() {
26371 this.projectName = null;
26372 }
26373
26374
26375 public boolean isSetProjectName() {
26376 return this.projectName != null;
26377 }
26378
26379 public void setProjectNameIsSet(boolean value) {
26380 if (!value) {
26381 this.projectName = null;
26382 }
26383 }
26384
26385 public String getRepositoryName() {
26386 return this.repositoryName;
26387 }
26388
26389 public watchRepository_args setRepositoryName(String repositoryName) {
26390 this.repositoryName = repositoryName;
26391 return this;
26392 }
26393
26394 public void unsetRepositoryName() {
26395 this.repositoryName = null;
26396 }
26397
26398
26399 public boolean isSetRepositoryName() {
26400 return this.repositoryName != null;
26401 }
26402
26403 public void setRepositoryNameIsSet(boolean value) {
26404 if (!value) {
26405 this.repositoryName = null;
26406 }
26407 }
26408
26409 public Revision getLastKnownRevision() {
26410 return this.lastKnownRevision;
26411 }
26412
26413 public watchRepository_args setLastKnownRevision(Revision lastKnownRevision) {
26414 this.lastKnownRevision = lastKnownRevision;
26415 return this;
26416 }
26417
26418 public void unsetLastKnownRevision() {
26419 this.lastKnownRevision = null;
26420 }
26421
26422
26423 public boolean isSetLastKnownRevision() {
26424 return this.lastKnownRevision != null;
26425 }
26426
26427 public void setLastKnownRevisionIsSet(boolean value) {
26428 if (!value) {
26429 this.lastKnownRevision = null;
26430 }
26431 }
26432
26433 public String getPathPattern() {
26434 return this.pathPattern;
26435 }
26436
26437 public watchRepository_args setPathPattern(String pathPattern) {
26438 this.pathPattern = pathPattern;
26439 return this;
26440 }
26441
26442 public void unsetPathPattern() {
26443 this.pathPattern = null;
26444 }
26445
26446
26447 public boolean isSetPathPattern() {
26448 return this.pathPattern != null;
26449 }
26450
26451 public void setPathPatternIsSet(boolean value) {
26452 if (!value) {
26453 this.pathPattern = null;
26454 }
26455 }
26456
26457 public long getTimeoutMillis() {
26458 return this.timeoutMillis;
26459 }
26460
26461 public watchRepository_args setTimeoutMillis(long timeoutMillis) {
26462 this.timeoutMillis = timeoutMillis;
26463 setTimeoutMillisIsSet(true);
26464 return this;
26465 }
26466
26467 public void unsetTimeoutMillis() {
26468 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMEOUTMILLIS_ISSET_ID);
26469 }
26470
26471
26472 public boolean isSetTimeoutMillis() {
26473 return EncodingUtils.testBit(__isset_bitfield, __TIMEOUTMILLIS_ISSET_ID);
26474 }
26475
26476 public void setTimeoutMillisIsSet(boolean value) {
26477 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMEOUTMILLIS_ISSET_ID, value);
26478 }
26479
26480 public void setFieldValue(_Fields field, Object value) {
26481 switch (field) {
26482 case PROJECT_NAME:
26483 if (value == null) {
26484 unsetProjectName();
26485 } else {
26486 setProjectName((String)value);
26487 }
26488 break;
26489
26490 case REPOSITORY_NAME:
26491 if (value == null) {
26492 unsetRepositoryName();
26493 } else {
26494 setRepositoryName((String)value);
26495 }
26496 break;
26497
26498 case LAST_KNOWN_REVISION:
26499 if (value == null) {
26500 unsetLastKnownRevision();
26501 } else {
26502 setLastKnownRevision((Revision)value);
26503 }
26504 break;
26505
26506 case PATH_PATTERN:
26507 if (value == null) {
26508 unsetPathPattern();
26509 } else {
26510 setPathPattern((String)value);
26511 }
26512 break;
26513
26514 case TIMEOUT_MILLIS:
26515 if (value == null) {
26516 unsetTimeoutMillis();
26517 } else {
26518 setTimeoutMillis((Long)value);
26519 }
26520 break;
26521
26522 }
26523 }
26524
26525 public Object getFieldValue(_Fields field) {
26526 switch (field) {
26527 case PROJECT_NAME:
26528 return getProjectName();
26529
26530 case REPOSITORY_NAME:
26531 return getRepositoryName();
26532
26533 case LAST_KNOWN_REVISION:
26534 return getLastKnownRevision();
26535
26536 case PATH_PATTERN:
26537 return getPathPattern();
26538
26539 case TIMEOUT_MILLIS:
26540 return Long.valueOf(getTimeoutMillis());
26541
26542 }
26543 throw new IllegalStateException();
26544 }
26545
26546
26547 public boolean isSet(_Fields field) {
26548 if (field == null) {
26549 throw new IllegalArgumentException();
26550 }
26551
26552 switch (field) {
26553 case PROJECT_NAME:
26554 return isSetProjectName();
26555 case REPOSITORY_NAME:
26556 return isSetRepositoryName();
26557 case LAST_KNOWN_REVISION:
26558 return isSetLastKnownRevision();
26559 case PATH_PATTERN:
26560 return isSetPathPattern();
26561 case TIMEOUT_MILLIS:
26562 return isSetTimeoutMillis();
26563 }
26564 throw new IllegalStateException();
26565 }
26566
26567 @Override
26568 public boolean equals(Object that) {
26569 if (that == null)
26570 return false;
26571 if (that instanceof watchRepository_args)
26572 return this.equals((watchRepository_args)that);
26573 return false;
26574 }
26575
26576 public boolean equals(watchRepository_args that) {
26577 if (that == null)
26578 return false;
26579
26580 boolean this_present_projectName = true && this.isSetProjectName();
26581 boolean that_present_projectName = true && that.isSetProjectName();
26582 if (this_present_projectName || that_present_projectName) {
26583 if (!(this_present_projectName && that_present_projectName))
26584 return false;
26585 if (!this.projectName.equals(that.projectName))
26586 return false;
26587 }
26588
26589 boolean this_present_repositoryName = true && this.isSetRepositoryName();
26590 boolean that_present_repositoryName = true && that.isSetRepositoryName();
26591 if (this_present_repositoryName || that_present_repositoryName) {
26592 if (!(this_present_repositoryName && that_present_repositoryName))
26593 return false;
26594 if (!this.repositoryName.equals(that.repositoryName))
26595 return false;
26596 }
26597
26598 boolean this_present_lastKnownRevision = true && this.isSetLastKnownRevision();
26599 boolean that_present_lastKnownRevision = true && that.isSetLastKnownRevision();
26600 if (this_present_lastKnownRevision || that_present_lastKnownRevision) {
26601 if (!(this_present_lastKnownRevision && that_present_lastKnownRevision))
26602 return false;
26603 if (!this.lastKnownRevision.equals(that.lastKnownRevision))
26604 return false;
26605 }
26606
26607 boolean this_present_pathPattern = true && this.isSetPathPattern();
26608 boolean that_present_pathPattern = true && that.isSetPathPattern();
26609 if (this_present_pathPattern || that_present_pathPattern) {
26610 if (!(this_present_pathPattern && that_present_pathPattern))
26611 return false;
26612 if (!this.pathPattern.equals(that.pathPattern))
26613 return false;
26614 }
26615
26616 boolean this_present_timeoutMillis = true;
26617 boolean that_present_timeoutMillis = true;
26618 if (this_present_timeoutMillis || that_present_timeoutMillis) {
26619 if (!(this_present_timeoutMillis && that_present_timeoutMillis))
26620 return false;
26621 if (this.timeoutMillis != that.timeoutMillis)
26622 return false;
26623 }
26624
26625 return true;
26626 }
26627
26628 @Override
26629 public int hashCode() {
26630 List<Object> list = new ArrayList<Object>();
26631
26632 boolean present_projectName = true && (isSetProjectName());
26633 list.add(present_projectName);
26634 if (present_projectName)
26635 list.add(projectName);
26636
26637 boolean present_repositoryName = true && (isSetRepositoryName());
26638 list.add(present_repositoryName);
26639 if (present_repositoryName)
26640 list.add(repositoryName);
26641
26642 boolean present_lastKnownRevision = true && (isSetLastKnownRevision());
26643 list.add(present_lastKnownRevision);
26644 if (present_lastKnownRevision)
26645 list.add(lastKnownRevision);
26646
26647 boolean present_pathPattern = true && (isSetPathPattern());
26648 list.add(present_pathPattern);
26649 if (present_pathPattern)
26650 list.add(pathPattern);
26651
26652 boolean present_timeoutMillis = true;
26653 list.add(present_timeoutMillis);
26654 if (present_timeoutMillis)
26655 list.add(timeoutMillis);
26656
26657 return list.hashCode();
26658 }
26659
26660 @Override
26661 public int compareTo(watchRepository_args other) {
26662 if (!getClass().equals(other.getClass())) {
26663 return getClass().getName().compareTo(other.getClass().getName());
26664 }
26665
26666 int lastComparison = 0;
26667
26668 lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName());
26669 if (lastComparison != 0) {
26670 return lastComparison;
26671 }
26672 if (isSetProjectName()) {
26673 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName);
26674 if (lastComparison != 0) {
26675 return lastComparison;
26676 }
26677 }
26678 lastComparison = Boolean.valueOf(isSetRepositoryName()).compareTo(other.isSetRepositoryName());
26679 if (lastComparison != 0) {
26680 return lastComparison;
26681 }
26682 if (isSetRepositoryName()) {
26683 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.repositoryName, other.repositoryName);
26684 if (lastComparison != 0) {
26685 return lastComparison;
26686 }
26687 }
26688 lastComparison = Boolean.valueOf(isSetLastKnownRevision()).compareTo(other.isSetLastKnownRevision());
26689 if (lastComparison != 0) {
26690 return lastComparison;
26691 }
26692 if (isSetLastKnownRevision()) {
26693 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastKnownRevision, other.lastKnownRevision);
26694 if (lastComparison != 0) {
26695 return lastComparison;
26696 }
26697 }
26698 lastComparison = Boolean.valueOf(isSetPathPattern()).compareTo(other.isSetPathPattern());
26699 if (lastComparison != 0) {
26700 return lastComparison;
26701 }
26702 if (isSetPathPattern()) {
26703 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pathPattern, other.pathPattern);
26704 if (lastComparison != 0) {
26705 return lastComparison;
26706 }
26707 }
26708 lastComparison = Boolean.valueOf(isSetTimeoutMillis()).compareTo(other.isSetTimeoutMillis());
26709 if (lastComparison != 0) {
26710 return lastComparison;
26711 }
26712 if (isSetTimeoutMillis()) {
26713 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timeoutMillis, other.timeoutMillis);
26714 if (lastComparison != 0) {
26715 return lastComparison;
26716 }
26717 }
26718 return 0;
26719 }
26720
26721 public _Fields fieldForId(int fieldId) {
26722 return _Fields.findByThriftId(fieldId);
26723 }
26724
26725 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
26726 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
26727 }
26728
26729 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
26730 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
26731 }
26732
26733 @Override
26734 public String toString() {
26735 StringBuilder sb = new StringBuilder("watchRepository_args(");
26736 boolean first = true;
26737
26738 sb.append("projectName:");
26739 if (this.projectName == null) {
26740 sb.append("null");
26741 } else {
26742 sb.append(this.projectName);
26743 }
26744 first = false;
26745 if (!first) sb.append(", ");
26746 sb.append("repositoryName:");
26747 if (this.repositoryName == null) {
26748 sb.append("null");
26749 } else {
26750 sb.append(this.repositoryName);
26751 }
26752 first = false;
26753 if (!first) sb.append(", ");
26754 sb.append("lastKnownRevision:");
26755 if (this.lastKnownRevision == null) {
26756 sb.append("null");
26757 } else {
26758 sb.append(this.lastKnownRevision);
26759 }
26760 first = false;
26761 if (!first) sb.append(", ");
26762 sb.append("pathPattern:");
26763 if (this.pathPattern == null) {
26764 sb.append("null");
26765 } else {
26766 sb.append(this.pathPattern);
26767 }
26768 first = false;
26769 if (!first) sb.append(", ");
26770 sb.append("timeoutMillis:");
26771 sb.append(this.timeoutMillis);
26772 first = false;
26773 sb.append(")");
26774 return sb.toString();
26775 }
26776
26777 public void validate() throws org.apache.thrift.TException {
26778
26779
26780 if (lastKnownRevision != null) {
26781 lastKnownRevision.validate();
26782 }
26783 }
26784
26785 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
26786 try {
26787 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
26788 } catch (org.apache.thrift.TException te) {
26789 throw new java.io.IOException(te);
26790 }
26791 }
26792
26793 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
26794 try {
26795
26796 __isset_bitfield = 0;
26797 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
26798 } catch (org.apache.thrift.TException te) {
26799 throw new java.io.IOException(te);
26800 }
26801 }
26802
26803 private static class watchRepository_argsStandardSchemeFactory implements SchemeFactory {
26804 public watchRepository_argsStandardScheme getScheme() {
26805 return new watchRepository_argsStandardScheme();
26806 }
26807 }
26808
26809 private static class watchRepository_argsStandardScheme extends StandardScheme<watchRepository_args> {
26810
26811 public void read(org.apache.thrift.protocol.TProtocol iprot, watchRepository_args struct) throws org.apache.thrift.TException {
26812 org.apache.thrift.protocol.TField schemeField;
26813 iprot.readStructBegin();
26814 while (true)
26815 {
26816 schemeField = iprot.readFieldBegin();
26817 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
26818 break;
26819 }
26820 switch (schemeField.id) {
26821 case 1:
26822 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
26823 struct.projectName = iprot.readString();
26824 struct.setProjectNameIsSet(true);
26825 } else {
26826 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
26827 }
26828 break;
26829 case 2:
26830 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
26831 struct.repositoryName = iprot.readString();
26832 struct.setRepositoryNameIsSet(true);
26833 } else {
26834 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
26835 }
26836 break;
26837 case 3:
26838 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
26839 struct.lastKnownRevision = new Revision();
26840 struct.lastKnownRevision.read(iprot);
26841 struct.setLastKnownRevisionIsSet(true);
26842 } else {
26843 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
26844 }
26845 break;
26846 case 4:
26847 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
26848 struct.pathPattern = iprot.readString();
26849 struct.setPathPatternIsSet(true);
26850 } else {
26851 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
26852 }
26853 break;
26854 case 5:
26855 if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
26856 struct.timeoutMillis = iprot.readI64();
26857 struct.setTimeoutMillisIsSet(true);
26858 } else {
26859 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
26860 }
26861 break;
26862 default:
26863 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
26864 }
26865 iprot.readFieldEnd();
26866 }
26867 iprot.readStructEnd();
26868
26869
26870 struct.validate();
26871 }
26872
26873 public void write(org.apache.thrift.protocol.TProtocol oprot, watchRepository_args struct) throws org.apache.thrift.TException {
26874 struct.validate();
26875
26876 oprot.writeStructBegin(STRUCT_DESC);
26877 if (struct.projectName != null) {
26878 oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC);
26879 oprot.writeString(struct.projectName);
26880 oprot.writeFieldEnd();
26881 }
26882 if (struct.repositoryName != null) {
26883 oprot.writeFieldBegin(REPOSITORY_NAME_FIELD_DESC);
26884 oprot.writeString(struct.repositoryName);
26885 oprot.writeFieldEnd();
26886 }
26887 if (struct.lastKnownRevision != null) {
26888 oprot.writeFieldBegin(LAST_KNOWN_REVISION_FIELD_DESC);
26889 struct.lastKnownRevision.write(oprot);
26890 oprot.writeFieldEnd();
26891 }
26892 if (struct.pathPattern != null) {
26893 oprot.writeFieldBegin(PATH_PATTERN_FIELD_DESC);
26894 oprot.writeString(struct.pathPattern);
26895 oprot.writeFieldEnd();
26896 }
26897 oprot.writeFieldBegin(TIMEOUT_MILLIS_FIELD_DESC);
26898 oprot.writeI64(struct.timeoutMillis);
26899 oprot.writeFieldEnd();
26900 oprot.writeFieldStop();
26901 oprot.writeStructEnd();
26902 }
26903
26904 }
26905
26906 private static class watchRepository_argsTupleSchemeFactory implements SchemeFactory {
26907 public watchRepository_argsTupleScheme getScheme() {
26908 return new watchRepository_argsTupleScheme();
26909 }
26910 }
26911
26912 private static class watchRepository_argsTupleScheme extends TupleScheme<watchRepository_args> {
26913
26914 @Override
26915 public void write(org.apache.thrift.protocol.TProtocol prot, watchRepository_args struct) throws org.apache.thrift.TException {
26916 TTupleProtocol oprot = (TTupleProtocol) prot;
26917 BitSet optionals = new BitSet();
26918 if (struct.isSetProjectName()) {
26919 optionals.set(0);
26920 }
26921 if (struct.isSetRepositoryName()) {
26922 optionals.set(1);
26923 }
26924 if (struct.isSetLastKnownRevision()) {
26925 optionals.set(2);
26926 }
26927 if (struct.isSetPathPattern()) {
26928 optionals.set(3);
26929 }
26930 if (struct.isSetTimeoutMillis()) {
26931 optionals.set(4);
26932 }
26933 oprot.writeBitSet(optionals, 5);
26934 if (struct.isSetProjectName()) {
26935 oprot.writeString(struct.projectName);
26936 }
26937 if (struct.isSetRepositoryName()) {
26938 oprot.writeString(struct.repositoryName);
26939 }
26940 if (struct.isSetLastKnownRevision()) {
26941 struct.lastKnownRevision.write(oprot);
26942 }
26943 if (struct.isSetPathPattern()) {
26944 oprot.writeString(struct.pathPattern);
26945 }
26946 if (struct.isSetTimeoutMillis()) {
26947 oprot.writeI64(struct.timeoutMillis);
26948 }
26949 }
26950
26951 @Override
26952 public void read(org.apache.thrift.protocol.TProtocol prot, watchRepository_args struct) throws org.apache.thrift.TException {
26953 TTupleProtocol iprot = (TTupleProtocol) prot;
26954 BitSet incoming = iprot.readBitSet(5);
26955 if (incoming.get(0)) {
26956 struct.projectName = iprot.readString();
26957 struct.setProjectNameIsSet(true);
26958 }
26959 if (incoming.get(1)) {
26960 struct.repositoryName = iprot.readString();
26961 struct.setRepositoryNameIsSet(true);
26962 }
26963 if (incoming.get(2)) {
26964 struct.lastKnownRevision = new Revision();
26965 struct.lastKnownRevision.read(iprot);
26966 struct.setLastKnownRevisionIsSet(true);
26967 }
26968 if (incoming.get(3)) {
26969 struct.pathPattern = iprot.readString();
26970 struct.setPathPatternIsSet(true);
26971 }
26972 if (incoming.get(4)) {
26973 struct.timeoutMillis = iprot.readI64();
26974 struct.setTimeoutMillisIsSet(true);
26975 }
26976 }
26977 }
26978
26979 }
26980
26981 public static class watchRepository_result implements org.apache.thrift.TBase<watchRepository_result, watchRepository_result._Fields>, java.io.Serializable, Cloneable, Comparable<watchRepository_result> {
26982 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("watchRepository_result");
26983
26984 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
26985 private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
26986
26987 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
26988 static {
26989 schemes.put(StandardScheme.class, new watchRepository_resultStandardSchemeFactory());
26990 schemes.put(TupleScheme.class, new watchRepository_resultTupleSchemeFactory());
26991 }
26992
26993 public WatchRepositoryResult success;
26994 public CentralDogmaException e;
26995
26996
26997 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
26998 SUCCESS((short)0, "success"),
26999 E((short)1, "e");
27000
27001 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
27002
27003 static {
27004 for (_Fields field : EnumSet.allOf(_Fields.class)) {
27005 byName.put(field.getFieldName(), field);
27006 }
27007 }
27008
27009
27010
27011
27012 public static _Fields findByThriftId(int fieldId) {
27013 switch(fieldId) {
27014 case 0:
27015 return SUCCESS;
27016 case 1:
27017 return E;
27018 default:
27019 return null;
27020 }
27021 }
27022
27023
27024
27025
27026
27027 public static _Fields findByThriftIdOrThrow(int fieldId) {
27028 _Fields fields = findByThriftId(fieldId);
27029 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
27030 return fields;
27031 }
27032
27033
27034
27035
27036 public static _Fields findByName(String name) {
27037 return byName.get(name);
27038 }
27039
27040 private final short _thriftId;
27041 private final String _fieldName;
27042
27043 _Fields(short thriftId, String fieldName) {
27044 _thriftId = thriftId;
27045 _fieldName = fieldName;
27046 }
27047
27048 public short getThriftFieldId() {
27049 return _thriftId;
27050 }
27051
27052 public String getFieldName() {
27053 return _fieldName;
27054 }
27055 }
27056
27057
27058 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
27059 static {
27060 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
27061 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
27062 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, WatchRepositoryResult.class)));
27063 tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
27064 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
27065 metaDataMap = Collections.unmodifiableMap(tmpMap);
27066 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(watchRepository_result.class, metaDataMap);
27067 }
27068
27069 public watchRepository_result() {
27070 }
27071
27072 public watchRepository_result(
27073 WatchRepositoryResult success,
27074 CentralDogmaException e)
27075 {
27076 this();
27077 this.success = success;
27078 this.e = e;
27079 }
27080
27081
27082
27083
27084 public watchRepository_result(watchRepository_result other) {
27085 if (other.isSetSuccess()) {
27086 this.success = new WatchRepositoryResult(other.success);
27087 }
27088 if (other.isSetE()) {
27089 this.e = new CentralDogmaException(other.e);
27090 }
27091 }
27092
27093 public watchRepository_result deepCopy() {
27094 return new watchRepository_result(this);
27095 }
27096
27097 @Override
27098 public void clear() {
27099 this.success = null;
27100 this.e = null;
27101 }
27102
27103 public WatchRepositoryResult getSuccess() {
27104 return this.success;
27105 }
27106
27107 public watchRepository_result setSuccess(WatchRepositoryResult success) {
27108 this.success = success;
27109 return this;
27110 }
27111
27112 public void unsetSuccess() {
27113 this.success = null;
27114 }
27115
27116
27117 public boolean isSetSuccess() {
27118 return this.success != null;
27119 }
27120
27121 public void setSuccessIsSet(boolean value) {
27122 if (!value) {
27123 this.success = null;
27124 }
27125 }
27126
27127 public CentralDogmaException getE() {
27128 return this.e;
27129 }
27130
27131 public watchRepository_result setE(CentralDogmaException e) {
27132 this.e = e;
27133 return this;
27134 }
27135
27136 public void unsetE() {
27137 this.e = null;
27138 }
27139
27140
27141 public boolean isSetE() {
27142 return this.e != null;
27143 }
27144
27145 public void setEIsSet(boolean value) {
27146 if (!value) {
27147 this.e = null;
27148 }
27149 }
27150
27151 public void setFieldValue(_Fields field, Object value) {
27152 switch (field) {
27153 case SUCCESS:
27154 if (value == null) {
27155 unsetSuccess();
27156 } else {
27157 setSuccess((WatchRepositoryResult)value);
27158 }
27159 break;
27160
27161 case E:
27162 if (value == null) {
27163 unsetE();
27164 } else {
27165 setE((CentralDogmaException)value);
27166 }
27167 break;
27168
27169 }
27170 }
27171
27172 public Object getFieldValue(_Fields field) {
27173 switch (field) {
27174 case SUCCESS:
27175 return getSuccess();
27176
27177 case E:
27178 return getE();
27179
27180 }
27181 throw new IllegalStateException();
27182 }
27183
27184
27185 public boolean isSet(_Fields field) {
27186 if (field == null) {
27187 throw new IllegalArgumentException();
27188 }
27189
27190 switch (field) {
27191 case SUCCESS:
27192 return isSetSuccess();
27193 case E:
27194 return isSetE();
27195 }
27196 throw new IllegalStateException();
27197 }
27198
27199 @Override
27200 public boolean equals(Object that) {
27201 if (that == null)
27202 return false;
27203 if (that instanceof watchRepository_result)
27204 return this.equals((watchRepository_result)that);
27205 return false;
27206 }
27207
27208 public boolean equals(watchRepository_result that) {
27209 if (that == null)
27210 return false;
27211
27212 boolean this_present_success = true && this.isSetSuccess();
27213 boolean that_present_success = true && that.isSetSuccess();
27214 if (this_present_success || that_present_success) {
27215 if (!(this_present_success && that_present_success))
27216 return false;
27217 if (!this.success.equals(that.success))
27218 return false;
27219 }
27220
27221 boolean this_present_e = true && this.isSetE();
27222 boolean that_present_e = true && that.isSetE();
27223 if (this_present_e || that_present_e) {
27224 if (!(this_present_e && that_present_e))
27225 return false;
27226 if (!this.e.equals(that.e))
27227 return false;
27228 }
27229
27230 return true;
27231 }
27232
27233 @Override
27234 public int hashCode() {
27235 List<Object> list = new ArrayList<Object>();
27236
27237 boolean present_success = true && (isSetSuccess());
27238 list.add(present_success);
27239 if (present_success)
27240 list.add(success);
27241
27242 boolean present_e = true && (isSetE());
27243 list.add(present_e);
27244 if (present_e)
27245 list.add(e);
27246
27247 return list.hashCode();
27248 }
27249
27250 @Override
27251 public int compareTo(watchRepository_result other) {
27252 if (!getClass().equals(other.getClass())) {
27253 return getClass().getName().compareTo(other.getClass().getName());
27254 }
27255
27256 int lastComparison = 0;
27257
27258 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
27259 if (lastComparison != 0) {
27260 return lastComparison;
27261 }
27262 if (isSetSuccess()) {
27263 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
27264 if (lastComparison != 0) {
27265 return lastComparison;
27266 }
27267 }
27268 lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE());
27269 if (lastComparison != 0) {
27270 return lastComparison;
27271 }
27272 if (isSetE()) {
27273 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e);
27274 if (lastComparison != 0) {
27275 return lastComparison;
27276 }
27277 }
27278 return 0;
27279 }
27280
27281 public _Fields fieldForId(int fieldId) {
27282 return _Fields.findByThriftId(fieldId);
27283 }
27284
27285 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
27286 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
27287 }
27288
27289 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
27290 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
27291 }
27292
27293 @Override
27294 public String toString() {
27295 StringBuilder sb = new StringBuilder("watchRepository_result(");
27296 boolean first = true;
27297
27298 sb.append("success:");
27299 if (this.success == null) {
27300 sb.append("null");
27301 } else {
27302 sb.append(this.success);
27303 }
27304 first = false;
27305 if (!first) sb.append(", ");
27306 sb.append("e:");
27307 if (this.e == null) {
27308 sb.append("null");
27309 } else {
27310 sb.append(this.e);
27311 }
27312 first = false;
27313 sb.append(")");
27314 return sb.toString();
27315 }
27316
27317 public void validate() throws org.apache.thrift.TException {
27318
27319
27320 if (success != null) {
27321 success.validate();
27322 }
27323 }
27324
27325 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
27326 try {
27327 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
27328 } catch (org.apache.thrift.TException te) {
27329 throw new java.io.IOException(te);
27330 }
27331 }
27332
27333 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
27334 try {
27335 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
27336 } catch (org.apache.thrift.TException te) {
27337 throw new java.io.IOException(te);
27338 }
27339 }
27340
27341 private static class watchRepository_resultStandardSchemeFactory implements SchemeFactory {
27342 public watchRepository_resultStandardScheme getScheme() {
27343 return new watchRepository_resultStandardScheme();
27344 }
27345 }
27346
27347 private static class watchRepository_resultStandardScheme extends StandardScheme<watchRepository_result> {
27348
27349 public void read(org.apache.thrift.protocol.TProtocol iprot, watchRepository_result struct) throws org.apache.thrift.TException {
27350 org.apache.thrift.protocol.TField schemeField;
27351 iprot.readStructBegin();
27352 while (true)
27353 {
27354 schemeField = iprot.readFieldBegin();
27355 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
27356 break;
27357 }
27358 switch (schemeField.id) {
27359 case 0:
27360 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
27361 struct.success = new WatchRepositoryResult();
27362 struct.success.read(iprot);
27363 struct.setSuccessIsSet(true);
27364 } else {
27365 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
27366 }
27367 break;
27368 case 1:
27369 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
27370 struct.e = new CentralDogmaException();
27371 struct.e.read(iprot);
27372 struct.setEIsSet(true);
27373 } else {
27374 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
27375 }
27376 break;
27377 default:
27378 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
27379 }
27380 iprot.readFieldEnd();
27381 }
27382 iprot.readStructEnd();
27383
27384
27385 struct.validate();
27386 }
27387
27388 public void write(org.apache.thrift.protocol.TProtocol oprot, watchRepository_result struct) throws org.apache.thrift.TException {
27389 struct.validate();
27390
27391 oprot.writeStructBegin(STRUCT_DESC);
27392 if (struct.success != null) {
27393 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
27394 struct.success.write(oprot);
27395 oprot.writeFieldEnd();
27396 }
27397 if (struct.e != null) {
27398 oprot.writeFieldBegin(E_FIELD_DESC);
27399 struct.e.write(oprot);
27400 oprot.writeFieldEnd();
27401 }
27402 oprot.writeFieldStop();
27403 oprot.writeStructEnd();
27404 }
27405
27406 }
27407
27408 private static class watchRepository_resultTupleSchemeFactory implements SchemeFactory {
27409 public watchRepository_resultTupleScheme getScheme() {
27410 return new watchRepository_resultTupleScheme();
27411 }
27412 }
27413
27414 private static class watchRepository_resultTupleScheme extends TupleScheme<watchRepository_result> {
27415
27416 @Override
27417 public void write(org.apache.thrift.protocol.TProtocol prot, watchRepository_result struct) throws org.apache.thrift.TException {
27418 TTupleProtocol oprot = (TTupleProtocol) prot;
27419 BitSet optionals = new BitSet();
27420 if (struct.isSetSuccess()) {
27421 optionals.set(0);
27422 }
27423 if (struct.isSetE()) {
27424 optionals.set(1);
27425 }
27426 oprot.writeBitSet(optionals, 2);
27427 if (struct.isSetSuccess()) {
27428 struct.success.write(oprot);
27429 }
27430 if (struct.isSetE()) {
27431 struct.e.write(oprot);
27432 }
27433 }
27434
27435 @Override
27436 public void read(org.apache.thrift.protocol.TProtocol prot, watchRepository_result struct) throws org.apache.thrift.TException {
27437 TTupleProtocol iprot = (TTupleProtocol) prot;
27438 BitSet incoming = iprot.readBitSet(2);
27439 if (incoming.get(0)) {
27440 struct.success = new WatchRepositoryResult();
27441 struct.success.read(iprot);
27442 struct.setSuccessIsSet(true);
27443 }
27444 if (incoming.get(1)) {
27445 struct.e = new CentralDogmaException();
27446 struct.e.read(iprot);
27447 struct.setEIsSet(true);
27448 }
27449 }
27450 }
27451
27452 }
27453
27454 public static class watchFile_args implements org.apache.thrift.TBase<watchFile_args, watchFile_args._Fields>, java.io.Serializable, Cloneable, Comparable<watchFile_args> {
27455 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("watchFile_args");
27456
27457 private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)1);
27458 private static final org.apache.thrift.protocol.TField REPOSITORY_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("repositoryName", org.apache.thrift.protocol.TType.STRING, (short)2);
27459 private static final org.apache.thrift.protocol.TField LAST_KNOWN_REVISION_FIELD_DESC = new org.apache.thrift.protocol.TField("lastKnownRevision", org.apache.thrift.protocol.TType.STRUCT, (short)3);
27460 private static final org.apache.thrift.protocol.TField QUERY_FIELD_DESC = new org.apache.thrift.protocol.TField("query", org.apache.thrift.protocol.TType.STRUCT, (short)4);
27461 private static final org.apache.thrift.protocol.TField TIMEOUT_MILLIS_FIELD_DESC = new org.apache.thrift.protocol.TField("timeoutMillis", org.apache.thrift.protocol.TType.I64, (short)5);
27462
27463 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
27464 static {
27465 schemes.put(StandardScheme.class, new watchFile_argsStandardSchemeFactory());
27466 schemes.put(TupleScheme.class, new watchFile_argsTupleSchemeFactory());
27467 }
27468
27469 public String projectName;
27470 public String repositoryName;
27471 public Revision lastKnownRevision;
27472 public Query query;
27473 public long timeoutMillis;
27474
27475
27476 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
27477 PROJECT_NAME((short)1, "projectName"),
27478 REPOSITORY_NAME((short)2, "repositoryName"),
27479 LAST_KNOWN_REVISION((short)3, "lastKnownRevision"),
27480 QUERY((short)4, "query"),
27481 TIMEOUT_MILLIS((short)5, "timeoutMillis");
27482
27483 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
27484
27485 static {
27486 for (_Fields field : EnumSet.allOf(_Fields.class)) {
27487 byName.put(field.getFieldName(), field);
27488 }
27489 }
27490
27491
27492
27493
27494 public static _Fields findByThriftId(int fieldId) {
27495 switch(fieldId) {
27496 case 1:
27497 return PROJECT_NAME;
27498 case 2:
27499 return REPOSITORY_NAME;
27500 case 3:
27501 return LAST_KNOWN_REVISION;
27502 case 4:
27503 return QUERY;
27504 case 5:
27505 return TIMEOUT_MILLIS;
27506 default:
27507 return null;
27508 }
27509 }
27510
27511
27512
27513
27514
27515 public static _Fields findByThriftIdOrThrow(int fieldId) {
27516 _Fields fields = findByThriftId(fieldId);
27517 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
27518 return fields;
27519 }
27520
27521
27522
27523
27524 public static _Fields findByName(String name) {
27525 return byName.get(name);
27526 }
27527
27528 private final short _thriftId;
27529 private final String _fieldName;
27530
27531 _Fields(short thriftId, String fieldName) {
27532 _thriftId = thriftId;
27533 _fieldName = fieldName;
27534 }
27535
27536 public short getThriftFieldId() {
27537 return _thriftId;
27538 }
27539
27540 public String getFieldName() {
27541 return _fieldName;
27542 }
27543 }
27544
27545
27546 private static final int __TIMEOUTMILLIS_ISSET_ID = 0;
27547 private byte __isset_bitfield = 0;
27548 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
27549 static {
27550 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
27551 tmpMap.put(_Fields.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", org.apache.thrift.TFieldRequirementType.DEFAULT,
27552 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
27553 tmpMap.put(_Fields.REPOSITORY_NAME, new org.apache.thrift.meta_data.FieldMetaData("repositoryName", org.apache.thrift.TFieldRequirementType.DEFAULT,
27554 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
27555 tmpMap.put(_Fields.LAST_KNOWN_REVISION, new org.apache.thrift.meta_data.FieldMetaData("lastKnownRevision", org.apache.thrift.TFieldRequirementType.DEFAULT,
27556 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Revision.class)));
27557 tmpMap.put(_Fields.QUERY, new org.apache.thrift.meta_data.FieldMetaData("query", org.apache.thrift.TFieldRequirementType.DEFAULT,
27558 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Query.class)));
27559 tmpMap.put(_Fields.TIMEOUT_MILLIS, new org.apache.thrift.meta_data.FieldMetaData("timeoutMillis", org.apache.thrift.TFieldRequirementType.DEFAULT,
27560 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
27561 metaDataMap = Collections.unmodifiableMap(tmpMap);
27562 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(watchFile_args.class, metaDataMap);
27563 }
27564
27565 public watchFile_args() {
27566 }
27567
27568 public watchFile_args(
27569 String projectName,
27570 String repositoryName,
27571 Revision lastKnownRevision,
27572 Query query,
27573 long timeoutMillis)
27574 {
27575 this();
27576 this.projectName = projectName;
27577 this.repositoryName = repositoryName;
27578 this.lastKnownRevision = lastKnownRevision;
27579 this.query = query;
27580 this.timeoutMillis = timeoutMillis;
27581 setTimeoutMillisIsSet(true);
27582 }
27583
27584
27585
27586
27587 public watchFile_args(watchFile_args other) {
27588 __isset_bitfield = other.__isset_bitfield;
27589 if (other.isSetProjectName()) {
27590 this.projectName = other.projectName;
27591 }
27592 if (other.isSetRepositoryName()) {
27593 this.repositoryName = other.repositoryName;
27594 }
27595 if (other.isSetLastKnownRevision()) {
27596 this.lastKnownRevision = new Revision(other.lastKnownRevision);
27597 }
27598 if (other.isSetQuery()) {
27599 this.query = new Query(other.query);
27600 }
27601 this.timeoutMillis = other.timeoutMillis;
27602 }
27603
27604 public watchFile_args deepCopy() {
27605 return new watchFile_args(this);
27606 }
27607
27608 @Override
27609 public void clear() {
27610 this.projectName = null;
27611 this.repositoryName = null;
27612 this.lastKnownRevision = null;
27613 this.query = null;
27614 setTimeoutMillisIsSet(false);
27615 this.timeoutMillis = 0;
27616 }
27617
27618 public String getProjectName() {
27619 return this.projectName;
27620 }
27621
27622 public watchFile_args setProjectName(String projectName) {
27623 this.projectName = projectName;
27624 return this;
27625 }
27626
27627 public void unsetProjectName() {
27628 this.projectName = null;
27629 }
27630
27631
27632 public boolean isSetProjectName() {
27633 return this.projectName != null;
27634 }
27635
27636 public void setProjectNameIsSet(boolean value) {
27637 if (!value) {
27638 this.projectName = null;
27639 }
27640 }
27641
27642 public String getRepositoryName() {
27643 return this.repositoryName;
27644 }
27645
27646 public watchFile_args setRepositoryName(String repositoryName) {
27647 this.repositoryName = repositoryName;
27648 return this;
27649 }
27650
27651 public void unsetRepositoryName() {
27652 this.repositoryName = null;
27653 }
27654
27655
27656 public boolean isSetRepositoryName() {
27657 return this.repositoryName != null;
27658 }
27659
27660 public void setRepositoryNameIsSet(boolean value) {
27661 if (!value) {
27662 this.repositoryName = null;
27663 }
27664 }
27665
27666 public Revision getLastKnownRevision() {
27667 return this.lastKnownRevision;
27668 }
27669
27670 public watchFile_args setLastKnownRevision(Revision lastKnownRevision) {
27671 this.lastKnownRevision = lastKnownRevision;
27672 return this;
27673 }
27674
27675 public void unsetLastKnownRevision() {
27676 this.lastKnownRevision = null;
27677 }
27678
27679
27680 public boolean isSetLastKnownRevision() {
27681 return this.lastKnownRevision != null;
27682 }
27683
27684 public void setLastKnownRevisionIsSet(boolean value) {
27685 if (!value) {
27686 this.lastKnownRevision = null;
27687 }
27688 }
27689
27690 public Query getQuery() {
27691 return this.query;
27692 }
27693
27694 public watchFile_args setQuery(Query query) {
27695 this.query = query;
27696 return this;
27697 }
27698
27699 public void unsetQuery() {
27700 this.query = null;
27701 }
27702
27703
27704 public boolean isSetQuery() {
27705 return this.query != null;
27706 }
27707
27708 public void setQueryIsSet(boolean value) {
27709 if (!value) {
27710 this.query = null;
27711 }
27712 }
27713
27714 public long getTimeoutMillis() {
27715 return this.timeoutMillis;
27716 }
27717
27718 public watchFile_args setTimeoutMillis(long timeoutMillis) {
27719 this.timeoutMillis = timeoutMillis;
27720 setTimeoutMillisIsSet(true);
27721 return this;
27722 }
27723
27724 public void unsetTimeoutMillis() {
27725 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMEOUTMILLIS_ISSET_ID);
27726 }
27727
27728
27729 public boolean isSetTimeoutMillis() {
27730 return EncodingUtils.testBit(__isset_bitfield, __TIMEOUTMILLIS_ISSET_ID);
27731 }
27732
27733 public void setTimeoutMillisIsSet(boolean value) {
27734 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMEOUTMILLIS_ISSET_ID, value);
27735 }
27736
27737 public void setFieldValue(_Fields field, Object value) {
27738 switch (field) {
27739 case PROJECT_NAME:
27740 if (value == null) {
27741 unsetProjectName();
27742 } else {
27743 setProjectName((String)value);
27744 }
27745 break;
27746
27747 case REPOSITORY_NAME:
27748 if (value == null) {
27749 unsetRepositoryName();
27750 } else {
27751 setRepositoryName((String)value);
27752 }
27753 break;
27754
27755 case LAST_KNOWN_REVISION:
27756 if (value == null) {
27757 unsetLastKnownRevision();
27758 } else {
27759 setLastKnownRevision((Revision)value);
27760 }
27761 break;
27762
27763 case QUERY:
27764 if (value == null) {
27765 unsetQuery();
27766 } else {
27767 setQuery((Query)value);
27768 }
27769 break;
27770
27771 case TIMEOUT_MILLIS:
27772 if (value == null) {
27773 unsetTimeoutMillis();
27774 } else {
27775 setTimeoutMillis((Long)value);
27776 }
27777 break;
27778
27779 }
27780 }
27781
27782 public Object getFieldValue(_Fields field) {
27783 switch (field) {
27784 case PROJECT_NAME:
27785 return getProjectName();
27786
27787 case REPOSITORY_NAME:
27788 return getRepositoryName();
27789
27790 case LAST_KNOWN_REVISION:
27791 return getLastKnownRevision();
27792
27793 case QUERY:
27794 return getQuery();
27795
27796 case TIMEOUT_MILLIS:
27797 return Long.valueOf(getTimeoutMillis());
27798
27799 }
27800 throw new IllegalStateException();
27801 }
27802
27803
27804 public boolean isSet(_Fields field) {
27805 if (field == null) {
27806 throw new IllegalArgumentException();
27807 }
27808
27809 switch (field) {
27810 case PROJECT_NAME:
27811 return isSetProjectName();
27812 case REPOSITORY_NAME:
27813 return isSetRepositoryName();
27814 case LAST_KNOWN_REVISION:
27815 return isSetLastKnownRevision();
27816 case QUERY:
27817 return isSetQuery();
27818 case TIMEOUT_MILLIS:
27819 return isSetTimeoutMillis();
27820 }
27821 throw new IllegalStateException();
27822 }
27823
27824 @Override
27825 public boolean equals(Object that) {
27826 if (that == null)
27827 return false;
27828 if (that instanceof watchFile_args)
27829 return this.equals((watchFile_args)that);
27830 return false;
27831 }
27832
27833 public boolean equals(watchFile_args that) {
27834 if (that == null)
27835 return false;
27836
27837 boolean this_present_projectName = true && this.isSetProjectName();
27838 boolean that_present_projectName = true && that.isSetProjectName();
27839 if (this_present_projectName || that_present_projectName) {
27840 if (!(this_present_projectName && that_present_projectName))
27841 return false;
27842 if (!this.projectName.equals(that.projectName))
27843 return false;
27844 }
27845
27846 boolean this_present_repositoryName = true && this.isSetRepositoryName();
27847 boolean that_present_repositoryName = true && that.isSetRepositoryName();
27848 if (this_present_repositoryName || that_present_repositoryName) {
27849 if (!(this_present_repositoryName && that_present_repositoryName))
27850 return false;
27851 if (!this.repositoryName.equals(that.repositoryName))
27852 return false;
27853 }
27854
27855 boolean this_present_lastKnownRevision = true && this.isSetLastKnownRevision();
27856 boolean that_present_lastKnownRevision = true && that.isSetLastKnownRevision();
27857 if (this_present_lastKnownRevision || that_present_lastKnownRevision) {
27858 if (!(this_present_lastKnownRevision && that_present_lastKnownRevision))
27859 return false;
27860 if (!this.lastKnownRevision.equals(that.lastKnownRevision))
27861 return false;
27862 }
27863
27864 boolean this_present_query = true && this.isSetQuery();
27865 boolean that_present_query = true && that.isSetQuery();
27866 if (this_present_query || that_present_query) {
27867 if (!(this_present_query && that_present_query))
27868 return false;
27869 if (!this.query.equals(that.query))
27870 return false;
27871 }
27872
27873 boolean this_present_timeoutMillis = true;
27874 boolean that_present_timeoutMillis = true;
27875 if (this_present_timeoutMillis || that_present_timeoutMillis) {
27876 if (!(this_present_timeoutMillis && that_present_timeoutMillis))
27877 return false;
27878 if (this.timeoutMillis != that.timeoutMillis)
27879 return false;
27880 }
27881
27882 return true;
27883 }
27884
27885 @Override
27886 public int hashCode() {
27887 List<Object> list = new ArrayList<Object>();
27888
27889 boolean present_projectName = true && (isSetProjectName());
27890 list.add(present_projectName);
27891 if (present_projectName)
27892 list.add(projectName);
27893
27894 boolean present_repositoryName = true && (isSetRepositoryName());
27895 list.add(present_repositoryName);
27896 if (present_repositoryName)
27897 list.add(repositoryName);
27898
27899 boolean present_lastKnownRevision = true && (isSetLastKnownRevision());
27900 list.add(present_lastKnownRevision);
27901 if (present_lastKnownRevision)
27902 list.add(lastKnownRevision);
27903
27904 boolean present_query = true && (isSetQuery());
27905 list.add(present_query);
27906 if (present_query)
27907 list.add(query);
27908
27909 boolean present_timeoutMillis = true;
27910 list.add(present_timeoutMillis);
27911 if (present_timeoutMillis)
27912 list.add(timeoutMillis);
27913
27914 return list.hashCode();
27915 }
27916
27917 @Override
27918 public int compareTo(watchFile_args other) {
27919 if (!getClass().equals(other.getClass())) {
27920 return getClass().getName().compareTo(other.getClass().getName());
27921 }
27922
27923 int lastComparison = 0;
27924
27925 lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName());
27926 if (lastComparison != 0) {
27927 return lastComparison;
27928 }
27929 if (isSetProjectName()) {
27930 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName);
27931 if (lastComparison != 0) {
27932 return lastComparison;
27933 }
27934 }
27935 lastComparison = Boolean.valueOf(isSetRepositoryName()).compareTo(other.isSetRepositoryName());
27936 if (lastComparison != 0) {
27937 return lastComparison;
27938 }
27939 if (isSetRepositoryName()) {
27940 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.repositoryName, other.repositoryName);
27941 if (lastComparison != 0) {
27942 return lastComparison;
27943 }
27944 }
27945 lastComparison = Boolean.valueOf(isSetLastKnownRevision()).compareTo(other.isSetLastKnownRevision());
27946 if (lastComparison != 0) {
27947 return lastComparison;
27948 }
27949 if (isSetLastKnownRevision()) {
27950 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastKnownRevision, other.lastKnownRevision);
27951 if (lastComparison != 0) {
27952 return lastComparison;
27953 }
27954 }
27955 lastComparison = Boolean.valueOf(isSetQuery()).compareTo(other.isSetQuery());
27956 if (lastComparison != 0) {
27957 return lastComparison;
27958 }
27959 if (isSetQuery()) {
27960 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.query, other.query);
27961 if (lastComparison != 0) {
27962 return lastComparison;
27963 }
27964 }
27965 lastComparison = Boolean.valueOf(isSetTimeoutMillis()).compareTo(other.isSetTimeoutMillis());
27966 if (lastComparison != 0) {
27967 return lastComparison;
27968 }
27969 if (isSetTimeoutMillis()) {
27970 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timeoutMillis, other.timeoutMillis);
27971 if (lastComparison != 0) {
27972 return lastComparison;
27973 }
27974 }
27975 return 0;
27976 }
27977
27978 public _Fields fieldForId(int fieldId) {
27979 return _Fields.findByThriftId(fieldId);
27980 }
27981
27982 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
27983 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
27984 }
27985
27986 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
27987 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
27988 }
27989
27990 @Override
27991 public String toString() {
27992 StringBuilder sb = new StringBuilder("watchFile_args(");
27993 boolean first = true;
27994
27995 sb.append("projectName:");
27996 if (this.projectName == null) {
27997 sb.append("null");
27998 } else {
27999 sb.append(this.projectName);
28000 }
28001 first = false;
28002 if (!first) sb.append(", ");
28003 sb.append("repositoryName:");
28004 if (this.repositoryName == null) {
28005 sb.append("null");
28006 } else {
28007 sb.append(this.repositoryName);
28008 }
28009 first = false;
28010 if (!first) sb.append(", ");
28011 sb.append("lastKnownRevision:");
28012 if (this.lastKnownRevision == null) {
28013 sb.append("null");
28014 } else {
28015 sb.append(this.lastKnownRevision);
28016 }
28017 first = false;
28018 if (!first) sb.append(", ");
28019 sb.append("query:");
28020 if (this.query == null) {
28021 sb.append("null");
28022 } else {
28023 sb.append(this.query);
28024 }
28025 first = false;
28026 if (!first) sb.append(", ");
28027 sb.append("timeoutMillis:");
28028 sb.append(this.timeoutMillis);
28029 first = false;
28030 sb.append(")");
28031 return sb.toString();
28032 }
28033
28034 public void validate() throws org.apache.thrift.TException {
28035
28036
28037 if (lastKnownRevision != null) {
28038 lastKnownRevision.validate();
28039 }
28040 if (query != null) {
28041 query.validate();
28042 }
28043 }
28044
28045 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
28046 try {
28047 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
28048 } catch (org.apache.thrift.TException te) {
28049 throw new java.io.IOException(te);
28050 }
28051 }
28052
28053 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
28054 try {
28055
28056 __isset_bitfield = 0;
28057 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
28058 } catch (org.apache.thrift.TException te) {
28059 throw new java.io.IOException(te);
28060 }
28061 }
28062
28063 private static class watchFile_argsStandardSchemeFactory implements SchemeFactory {
28064 public watchFile_argsStandardScheme getScheme() {
28065 return new watchFile_argsStandardScheme();
28066 }
28067 }
28068
28069 private static class watchFile_argsStandardScheme extends StandardScheme<watchFile_args> {
28070
28071 public void read(org.apache.thrift.protocol.TProtocol iprot, watchFile_args struct) throws org.apache.thrift.TException {
28072 org.apache.thrift.protocol.TField schemeField;
28073 iprot.readStructBegin();
28074 while (true)
28075 {
28076 schemeField = iprot.readFieldBegin();
28077 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
28078 break;
28079 }
28080 switch (schemeField.id) {
28081 case 1:
28082 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
28083 struct.projectName = iprot.readString();
28084 struct.setProjectNameIsSet(true);
28085 } else {
28086 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
28087 }
28088 break;
28089 case 2:
28090 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
28091 struct.repositoryName = iprot.readString();
28092 struct.setRepositoryNameIsSet(true);
28093 } else {
28094 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
28095 }
28096 break;
28097 case 3:
28098 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
28099 struct.lastKnownRevision = new Revision();
28100 struct.lastKnownRevision.read(iprot);
28101 struct.setLastKnownRevisionIsSet(true);
28102 } else {
28103 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
28104 }
28105 break;
28106 case 4:
28107 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
28108 struct.query = new Query();
28109 struct.query.read(iprot);
28110 struct.setQueryIsSet(true);
28111 } else {
28112 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
28113 }
28114 break;
28115 case 5:
28116 if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
28117 struct.timeoutMillis = iprot.readI64();
28118 struct.setTimeoutMillisIsSet(true);
28119 } else {
28120 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
28121 }
28122 break;
28123 default:
28124 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
28125 }
28126 iprot.readFieldEnd();
28127 }
28128 iprot.readStructEnd();
28129
28130
28131 struct.validate();
28132 }
28133
28134 public void write(org.apache.thrift.protocol.TProtocol oprot, watchFile_args struct) throws org.apache.thrift.TException {
28135 struct.validate();
28136
28137 oprot.writeStructBegin(STRUCT_DESC);
28138 if (struct.projectName != null) {
28139 oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC);
28140 oprot.writeString(struct.projectName);
28141 oprot.writeFieldEnd();
28142 }
28143 if (struct.repositoryName != null) {
28144 oprot.writeFieldBegin(REPOSITORY_NAME_FIELD_DESC);
28145 oprot.writeString(struct.repositoryName);
28146 oprot.writeFieldEnd();
28147 }
28148 if (struct.lastKnownRevision != null) {
28149 oprot.writeFieldBegin(LAST_KNOWN_REVISION_FIELD_DESC);
28150 struct.lastKnownRevision.write(oprot);
28151 oprot.writeFieldEnd();
28152 }
28153 if (struct.query != null) {
28154 oprot.writeFieldBegin(QUERY_FIELD_DESC);
28155 struct.query.write(oprot);
28156 oprot.writeFieldEnd();
28157 }
28158 oprot.writeFieldBegin(TIMEOUT_MILLIS_FIELD_DESC);
28159 oprot.writeI64(struct.timeoutMillis);
28160 oprot.writeFieldEnd();
28161 oprot.writeFieldStop();
28162 oprot.writeStructEnd();
28163 }
28164
28165 }
28166
28167 private static class watchFile_argsTupleSchemeFactory implements SchemeFactory {
28168 public watchFile_argsTupleScheme getScheme() {
28169 return new watchFile_argsTupleScheme();
28170 }
28171 }
28172
28173 private static class watchFile_argsTupleScheme extends TupleScheme<watchFile_args> {
28174
28175 @Override
28176 public void write(org.apache.thrift.protocol.TProtocol prot, watchFile_args struct) throws org.apache.thrift.TException {
28177 TTupleProtocol oprot = (TTupleProtocol) prot;
28178 BitSet optionals = new BitSet();
28179 if (struct.isSetProjectName()) {
28180 optionals.set(0);
28181 }
28182 if (struct.isSetRepositoryName()) {
28183 optionals.set(1);
28184 }
28185 if (struct.isSetLastKnownRevision()) {
28186 optionals.set(2);
28187 }
28188 if (struct.isSetQuery()) {
28189 optionals.set(3);
28190 }
28191 if (struct.isSetTimeoutMillis()) {
28192 optionals.set(4);
28193 }
28194 oprot.writeBitSet(optionals, 5);
28195 if (struct.isSetProjectName()) {
28196 oprot.writeString(struct.projectName);
28197 }
28198 if (struct.isSetRepositoryName()) {
28199 oprot.writeString(struct.repositoryName);
28200 }
28201 if (struct.isSetLastKnownRevision()) {
28202 struct.lastKnownRevision.write(oprot);
28203 }
28204 if (struct.isSetQuery()) {
28205 struct.query.write(oprot);
28206 }
28207 if (struct.isSetTimeoutMillis()) {
28208 oprot.writeI64(struct.timeoutMillis);
28209 }
28210 }
28211
28212 @Override
28213 public void read(org.apache.thrift.protocol.TProtocol prot, watchFile_args struct) throws org.apache.thrift.TException {
28214 TTupleProtocol iprot = (TTupleProtocol) prot;
28215 BitSet incoming = iprot.readBitSet(5);
28216 if (incoming.get(0)) {
28217 struct.projectName = iprot.readString();
28218 struct.setProjectNameIsSet(true);
28219 }
28220 if (incoming.get(1)) {
28221 struct.repositoryName = iprot.readString();
28222 struct.setRepositoryNameIsSet(true);
28223 }
28224 if (incoming.get(2)) {
28225 struct.lastKnownRevision = new Revision();
28226 struct.lastKnownRevision.read(iprot);
28227 struct.setLastKnownRevisionIsSet(true);
28228 }
28229 if (incoming.get(3)) {
28230 struct.query = new Query();
28231 struct.query.read(iprot);
28232 struct.setQueryIsSet(true);
28233 }
28234 if (incoming.get(4)) {
28235 struct.timeoutMillis = iprot.readI64();
28236 struct.setTimeoutMillisIsSet(true);
28237 }
28238 }
28239 }
28240
28241 }
28242
28243 public static class watchFile_result implements org.apache.thrift.TBase<watchFile_result, watchFile_result._Fields>, java.io.Serializable, Cloneable, Comparable<watchFile_result> {
28244 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("watchFile_result");
28245
28246 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
28247 private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
28248
28249 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
28250 static {
28251 schemes.put(StandardScheme.class, new watchFile_resultStandardSchemeFactory());
28252 schemes.put(TupleScheme.class, new watchFile_resultTupleSchemeFactory());
28253 }
28254
28255 public WatchFileResult success;
28256 public CentralDogmaException e;
28257
28258
28259 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
28260 SUCCESS((short)0, "success"),
28261 E((short)1, "e");
28262
28263 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
28264
28265 static {
28266 for (_Fields field : EnumSet.allOf(_Fields.class)) {
28267 byName.put(field.getFieldName(), field);
28268 }
28269 }
28270
28271
28272
28273
28274 public static _Fields findByThriftId(int fieldId) {
28275 switch(fieldId) {
28276 case 0:
28277 return SUCCESS;
28278 case 1:
28279 return E;
28280 default:
28281 return null;
28282 }
28283 }
28284
28285
28286
28287
28288
28289 public static _Fields findByThriftIdOrThrow(int fieldId) {
28290 _Fields fields = findByThriftId(fieldId);
28291 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
28292 return fields;
28293 }
28294
28295
28296
28297
28298 public static _Fields findByName(String name) {
28299 return byName.get(name);
28300 }
28301
28302 private final short _thriftId;
28303 private final String _fieldName;
28304
28305 _Fields(short thriftId, String fieldName) {
28306 _thriftId = thriftId;
28307 _fieldName = fieldName;
28308 }
28309
28310 public short getThriftFieldId() {
28311 return _thriftId;
28312 }
28313
28314 public String getFieldName() {
28315 return _fieldName;
28316 }
28317 }
28318
28319
28320 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
28321 static {
28322 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
28323 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
28324 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, WatchFileResult.class)));
28325 tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
28326 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
28327 metaDataMap = Collections.unmodifiableMap(tmpMap);
28328 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(watchFile_result.class, metaDataMap);
28329 }
28330
28331 public watchFile_result() {
28332 }
28333
28334 public watchFile_result(
28335 WatchFileResult success,
28336 CentralDogmaException e)
28337 {
28338 this();
28339 this.success = success;
28340 this.e = e;
28341 }
28342
28343
28344
28345
28346 public watchFile_result(watchFile_result other) {
28347 if (other.isSetSuccess()) {
28348 this.success = new WatchFileResult(other.success);
28349 }
28350 if (other.isSetE()) {
28351 this.e = new CentralDogmaException(other.e);
28352 }
28353 }
28354
28355 public watchFile_result deepCopy() {
28356 return new watchFile_result(this);
28357 }
28358
28359 @Override
28360 public void clear() {
28361 this.success = null;
28362 this.e = null;
28363 }
28364
28365 public WatchFileResult getSuccess() {
28366 return this.success;
28367 }
28368
28369 public watchFile_result setSuccess(WatchFileResult success) {
28370 this.success = success;
28371 return this;
28372 }
28373
28374 public void unsetSuccess() {
28375 this.success = null;
28376 }
28377
28378
28379 public boolean isSetSuccess() {
28380 return this.success != null;
28381 }
28382
28383 public void setSuccessIsSet(boolean value) {
28384 if (!value) {
28385 this.success = null;
28386 }
28387 }
28388
28389 public CentralDogmaException getE() {
28390 return this.e;
28391 }
28392
28393 public watchFile_result setE(CentralDogmaException e) {
28394 this.e = e;
28395 return this;
28396 }
28397
28398 public void unsetE() {
28399 this.e = null;
28400 }
28401
28402
28403 public boolean isSetE() {
28404 return this.e != null;
28405 }
28406
28407 public void setEIsSet(boolean value) {
28408 if (!value) {
28409 this.e = null;
28410 }
28411 }
28412
28413 public void setFieldValue(_Fields field, Object value) {
28414 switch (field) {
28415 case SUCCESS:
28416 if (value == null) {
28417 unsetSuccess();
28418 } else {
28419 setSuccess((WatchFileResult)value);
28420 }
28421 break;
28422
28423 case E:
28424 if (value == null) {
28425 unsetE();
28426 } else {
28427 setE((CentralDogmaException)value);
28428 }
28429 break;
28430
28431 }
28432 }
28433
28434 public Object getFieldValue(_Fields field) {
28435 switch (field) {
28436 case SUCCESS:
28437 return getSuccess();
28438
28439 case E:
28440 return getE();
28441
28442 }
28443 throw new IllegalStateException();
28444 }
28445
28446
28447 public boolean isSet(_Fields field) {
28448 if (field == null) {
28449 throw new IllegalArgumentException();
28450 }
28451
28452 switch (field) {
28453 case SUCCESS:
28454 return isSetSuccess();
28455 case E:
28456 return isSetE();
28457 }
28458 throw new IllegalStateException();
28459 }
28460
28461 @Override
28462 public boolean equals(Object that) {
28463 if (that == null)
28464 return false;
28465 if (that instanceof watchFile_result)
28466 return this.equals((watchFile_result)that);
28467 return false;
28468 }
28469
28470 public boolean equals(watchFile_result that) {
28471 if (that == null)
28472 return false;
28473
28474 boolean this_present_success = true && this.isSetSuccess();
28475 boolean that_present_success = true && that.isSetSuccess();
28476 if (this_present_success || that_present_success) {
28477 if (!(this_present_success && that_present_success))
28478 return false;
28479 if (!this.success.equals(that.success))
28480 return false;
28481 }
28482
28483 boolean this_present_e = true && this.isSetE();
28484 boolean that_present_e = true && that.isSetE();
28485 if (this_present_e || that_present_e) {
28486 if (!(this_present_e && that_present_e))
28487 return false;
28488 if (!this.e.equals(that.e))
28489 return false;
28490 }
28491
28492 return true;
28493 }
28494
28495 @Override
28496 public int hashCode() {
28497 List<Object> list = new ArrayList<Object>();
28498
28499 boolean present_success = true && (isSetSuccess());
28500 list.add(present_success);
28501 if (present_success)
28502 list.add(success);
28503
28504 boolean present_e = true && (isSetE());
28505 list.add(present_e);
28506 if (present_e)
28507 list.add(e);
28508
28509 return list.hashCode();
28510 }
28511
28512 @Override
28513 public int compareTo(watchFile_result other) {
28514 if (!getClass().equals(other.getClass())) {
28515 return getClass().getName().compareTo(other.getClass().getName());
28516 }
28517
28518 int lastComparison = 0;
28519
28520 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
28521 if (lastComparison != 0) {
28522 return lastComparison;
28523 }
28524 if (isSetSuccess()) {
28525 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
28526 if (lastComparison != 0) {
28527 return lastComparison;
28528 }
28529 }
28530 lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE());
28531 if (lastComparison != 0) {
28532 return lastComparison;
28533 }
28534 if (isSetE()) {
28535 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e);
28536 if (lastComparison != 0) {
28537 return lastComparison;
28538 }
28539 }
28540 return 0;
28541 }
28542
28543 public _Fields fieldForId(int fieldId) {
28544 return _Fields.findByThriftId(fieldId);
28545 }
28546
28547 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
28548 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
28549 }
28550
28551 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
28552 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
28553 }
28554
28555 @Override
28556 public String toString() {
28557 StringBuilder sb = new StringBuilder("watchFile_result(");
28558 boolean first = true;
28559
28560 sb.append("success:");
28561 if (this.success == null) {
28562 sb.append("null");
28563 } else {
28564 sb.append(this.success);
28565 }
28566 first = false;
28567 if (!first) sb.append(", ");
28568 sb.append("e:");
28569 if (this.e == null) {
28570 sb.append("null");
28571 } else {
28572 sb.append(this.e);
28573 }
28574 first = false;
28575 sb.append(")");
28576 return sb.toString();
28577 }
28578
28579 public void validate() throws org.apache.thrift.TException {
28580
28581
28582 if (success != null) {
28583 success.validate();
28584 }
28585 }
28586
28587 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
28588 try {
28589 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
28590 } catch (org.apache.thrift.TException te) {
28591 throw new java.io.IOException(te);
28592 }
28593 }
28594
28595 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
28596 try {
28597 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
28598 } catch (org.apache.thrift.TException te) {
28599 throw new java.io.IOException(te);
28600 }
28601 }
28602
28603 private static class watchFile_resultStandardSchemeFactory implements SchemeFactory {
28604 public watchFile_resultStandardScheme getScheme() {
28605 return new watchFile_resultStandardScheme();
28606 }
28607 }
28608
28609 private static class watchFile_resultStandardScheme extends StandardScheme<watchFile_result> {
28610
28611 public void read(org.apache.thrift.protocol.TProtocol iprot, watchFile_result struct) throws org.apache.thrift.TException {
28612 org.apache.thrift.protocol.TField schemeField;
28613 iprot.readStructBegin();
28614 while (true)
28615 {
28616 schemeField = iprot.readFieldBegin();
28617 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
28618 break;
28619 }
28620 switch (schemeField.id) {
28621 case 0:
28622 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
28623 struct.success = new WatchFileResult();
28624 struct.success.read(iprot);
28625 struct.setSuccessIsSet(true);
28626 } else {
28627 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
28628 }
28629 break;
28630 case 1:
28631 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
28632 struct.e = new CentralDogmaException();
28633 struct.e.read(iprot);
28634 struct.setEIsSet(true);
28635 } else {
28636 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
28637 }
28638 break;
28639 default:
28640 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
28641 }
28642 iprot.readFieldEnd();
28643 }
28644 iprot.readStructEnd();
28645
28646
28647 struct.validate();
28648 }
28649
28650 public void write(org.apache.thrift.protocol.TProtocol oprot, watchFile_result struct) throws org.apache.thrift.TException {
28651 struct.validate();
28652
28653 oprot.writeStructBegin(STRUCT_DESC);
28654 if (struct.success != null) {
28655 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
28656 struct.success.write(oprot);
28657 oprot.writeFieldEnd();
28658 }
28659 if (struct.e != null) {
28660 oprot.writeFieldBegin(E_FIELD_DESC);
28661 struct.e.write(oprot);
28662 oprot.writeFieldEnd();
28663 }
28664 oprot.writeFieldStop();
28665 oprot.writeStructEnd();
28666 }
28667
28668 }
28669
28670 private static class watchFile_resultTupleSchemeFactory implements SchemeFactory {
28671 public watchFile_resultTupleScheme getScheme() {
28672 return new watchFile_resultTupleScheme();
28673 }
28674 }
28675
28676 private static class watchFile_resultTupleScheme extends TupleScheme<watchFile_result> {
28677
28678 @Override
28679 public void write(org.apache.thrift.protocol.TProtocol prot, watchFile_result struct) throws org.apache.thrift.TException {
28680 TTupleProtocol oprot = (TTupleProtocol) prot;
28681 BitSet optionals = new BitSet();
28682 if (struct.isSetSuccess()) {
28683 optionals.set(0);
28684 }
28685 if (struct.isSetE()) {
28686 optionals.set(1);
28687 }
28688 oprot.writeBitSet(optionals, 2);
28689 if (struct.isSetSuccess()) {
28690 struct.success.write(oprot);
28691 }
28692 if (struct.isSetE()) {
28693 struct.e.write(oprot);
28694 }
28695 }
28696
28697 @Override
28698 public void read(org.apache.thrift.protocol.TProtocol prot, watchFile_result struct) throws org.apache.thrift.TException {
28699 TTupleProtocol iprot = (TTupleProtocol) prot;
28700 BitSet incoming = iprot.readBitSet(2);
28701 if (incoming.get(0)) {
28702 struct.success = new WatchFileResult();
28703 struct.success.read(iprot);
28704 struct.setSuccessIsSet(true);
28705 }
28706 if (incoming.get(1)) {
28707 struct.e = new CentralDogmaException();
28708 struct.e.read(iprot);
28709 struct.setEIsSet(true);
28710 }
28711 }
28712 }
28713
28714 }
28715
28716 public static class getSchema_args implements org.apache.thrift.TBase<getSchema_args, getSchema_args._Fields>, java.io.Serializable, Cloneable, Comparable<getSchema_args> {
28717 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSchema_args");
28718
28719 private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)1);
28720
28721 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
28722 static {
28723 schemes.put(StandardScheme.class, new getSchema_argsStandardSchemeFactory());
28724 schemes.put(TupleScheme.class, new getSchema_argsTupleSchemeFactory());
28725 }
28726
28727 public String projectName;
28728
28729
28730 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
28731 PROJECT_NAME((short)1, "projectName");
28732
28733 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
28734
28735 static {
28736 for (_Fields field : EnumSet.allOf(_Fields.class)) {
28737 byName.put(field.getFieldName(), field);
28738 }
28739 }
28740
28741
28742
28743
28744 public static _Fields findByThriftId(int fieldId) {
28745 switch(fieldId) {
28746 case 1:
28747 return PROJECT_NAME;
28748 default:
28749 return null;
28750 }
28751 }
28752
28753
28754
28755
28756
28757 public static _Fields findByThriftIdOrThrow(int fieldId) {
28758 _Fields fields = findByThriftId(fieldId);
28759 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
28760 return fields;
28761 }
28762
28763
28764
28765
28766 public static _Fields findByName(String name) {
28767 return byName.get(name);
28768 }
28769
28770 private final short _thriftId;
28771 private final String _fieldName;
28772
28773 _Fields(short thriftId, String fieldName) {
28774 _thriftId = thriftId;
28775 _fieldName = fieldName;
28776 }
28777
28778 public short getThriftFieldId() {
28779 return _thriftId;
28780 }
28781
28782 public String getFieldName() {
28783 return _fieldName;
28784 }
28785 }
28786
28787
28788 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
28789 static {
28790 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
28791 tmpMap.put(_Fields.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", org.apache.thrift.TFieldRequirementType.DEFAULT,
28792 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
28793 metaDataMap = Collections.unmodifiableMap(tmpMap);
28794 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSchema_args.class, metaDataMap);
28795 }
28796
28797 public getSchema_args() {
28798 }
28799
28800 public getSchema_args(
28801 String projectName)
28802 {
28803 this();
28804 this.projectName = projectName;
28805 }
28806
28807
28808
28809
28810 public getSchema_args(getSchema_args other) {
28811 if (other.isSetProjectName()) {
28812 this.projectName = other.projectName;
28813 }
28814 }
28815
28816 public getSchema_args deepCopy() {
28817 return new getSchema_args(this);
28818 }
28819
28820 @Override
28821 public void clear() {
28822 this.projectName = null;
28823 }
28824
28825 public String getProjectName() {
28826 return this.projectName;
28827 }
28828
28829 public getSchema_args setProjectName(String projectName) {
28830 this.projectName = projectName;
28831 return this;
28832 }
28833
28834 public void unsetProjectName() {
28835 this.projectName = null;
28836 }
28837
28838
28839 public boolean isSetProjectName() {
28840 return this.projectName != null;
28841 }
28842
28843 public void setProjectNameIsSet(boolean value) {
28844 if (!value) {
28845 this.projectName = null;
28846 }
28847 }
28848
28849 public void setFieldValue(_Fields field, Object value) {
28850 switch (field) {
28851 case PROJECT_NAME:
28852 if (value == null) {
28853 unsetProjectName();
28854 } else {
28855 setProjectName((String)value);
28856 }
28857 break;
28858
28859 }
28860 }
28861
28862 public Object getFieldValue(_Fields field) {
28863 switch (field) {
28864 case PROJECT_NAME:
28865 return getProjectName();
28866
28867 }
28868 throw new IllegalStateException();
28869 }
28870
28871
28872 public boolean isSet(_Fields field) {
28873 if (field == null) {
28874 throw new IllegalArgumentException();
28875 }
28876
28877 switch (field) {
28878 case PROJECT_NAME:
28879 return isSetProjectName();
28880 }
28881 throw new IllegalStateException();
28882 }
28883
28884 @Override
28885 public boolean equals(Object that) {
28886 if (that == null)
28887 return false;
28888 if (that instanceof getSchema_args)
28889 return this.equals((getSchema_args)that);
28890 return false;
28891 }
28892
28893 public boolean equals(getSchema_args that) {
28894 if (that == null)
28895 return false;
28896
28897 boolean this_present_projectName = true && this.isSetProjectName();
28898 boolean that_present_projectName = true && that.isSetProjectName();
28899 if (this_present_projectName || that_present_projectName) {
28900 if (!(this_present_projectName && that_present_projectName))
28901 return false;
28902 if (!this.projectName.equals(that.projectName))
28903 return false;
28904 }
28905
28906 return true;
28907 }
28908
28909 @Override
28910 public int hashCode() {
28911 List<Object> list = new ArrayList<Object>();
28912
28913 boolean present_projectName = true && (isSetProjectName());
28914 list.add(present_projectName);
28915 if (present_projectName)
28916 list.add(projectName);
28917
28918 return list.hashCode();
28919 }
28920
28921 @Override
28922 public int compareTo(getSchema_args other) {
28923 if (!getClass().equals(other.getClass())) {
28924 return getClass().getName().compareTo(other.getClass().getName());
28925 }
28926
28927 int lastComparison = 0;
28928
28929 lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName());
28930 if (lastComparison != 0) {
28931 return lastComparison;
28932 }
28933 if (isSetProjectName()) {
28934 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName);
28935 if (lastComparison != 0) {
28936 return lastComparison;
28937 }
28938 }
28939 return 0;
28940 }
28941
28942 public _Fields fieldForId(int fieldId) {
28943 return _Fields.findByThriftId(fieldId);
28944 }
28945
28946 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
28947 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
28948 }
28949
28950 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
28951 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
28952 }
28953
28954 @Override
28955 public String toString() {
28956 StringBuilder sb = new StringBuilder("getSchema_args(");
28957 boolean first = true;
28958
28959 sb.append("projectName:");
28960 if (this.projectName == null) {
28961 sb.append("null");
28962 } else {
28963 sb.append(this.projectName);
28964 }
28965 first = false;
28966 sb.append(")");
28967 return sb.toString();
28968 }
28969
28970 public void validate() throws org.apache.thrift.TException {
28971
28972
28973 }
28974
28975 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
28976 try {
28977 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
28978 } catch (org.apache.thrift.TException te) {
28979 throw new java.io.IOException(te);
28980 }
28981 }
28982
28983 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
28984 try {
28985 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
28986 } catch (org.apache.thrift.TException te) {
28987 throw new java.io.IOException(te);
28988 }
28989 }
28990
28991 private static class getSchema_argsStandardSchemeFactory implements SchemeFactory {
28992 public getSchema_argsStandardScheme getScheme() {
28993 return new getSchema_argsStandardScheme();
28994 }
28995 }
28996
28997 private static class getSchema_argsStandardScheme extends StandardScheme<getSchema_args> {
28998
28999 public void read(org.apache.thrift.protocol.TProtocol iprot, getSchema_args struct) throws org.apache.thrift.TException {
29000 org.apache.thrift.protocol.TField schemeField;
29001 iprot.readStructBegin();
29002 while (true)
29003 {
29004 schemeField = iprot.readFieldBegin();
29005 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
29006 break;
29007 }
29008 switch (schemeField.id) {
29009 case 1:
29010 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
29011 struct.projectName = iprot.readString();
29012 struct.setProjectNameIsSet(true);
29013 } else {
29014 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
29015 }
29016 break;
29017 default:
29018 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
29019 }
29020 iprot.readFieldEnd();
29021 }
29022 iprot.readStructEnd();
29023
29024
29025 struct.validate();
29026 }
29027
29028 public void write(org.apache.thrift.protocol.TProtocol oprot, getSchema_args struct) throws org.apache.thrift.TException {
29029 struct.validate();
29030
29031 oprot.writeStructBegin(STRUCT_DESC);
29032 if (struct.projectName != null) {
29033 oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC);
29034 oprot.writeString(struct.projectName);
29035 oprot.writeFieldEnd();
29036 }
29037 oprot.writeFieldStop();
29038 oprot.writeStructEnd();
29039 }
29040
29041 }
29042
29043 private static class getSchema_argsTupleSchemeFactory implements SchemeFactory {
29044 public getSchema_argsTupleScheme getScheme() {
29045 return new getSchema_argsTupleScheme();
29046 }
29047 }
29048
29049 private static class getSchema_argsTupleScheme extends TupleScheme<getSchema_args> {
29050
29051 @Override
29052 public void write(org.apache.thrift.protocol.TProtocol prot, getSchema_args struct) throws org.apache.thrift.TException {
29053 TTupleProtocol oprot = (TTupleProtocol) prot;
29054 BitSet optionals = new BitSet();
29055 if (struct.isSetProjectName()) {
29056 optionals.set(0);
29057 }
29058 oprot.writeBitSet(optionals, 1);
29059 if (struct.isSetProjectName()) {
29060 oprot.writeString(struct.projectName);
29061 }
29062 }
29063
29064 @Override
29065 public void read(org.apache.thrift.protocol.TProtocol prot, getSchema_args struct) throws org.apache.thrift.TException {
29066 TTupleProtocol iprot = (TTupleProtocol) prot;
29067 BitSet incoming = iprot.readBitSet(1);
29068 if (incoming.get(0)) {
29069 struct.projectName = iprot.readString();
29070 struct.setProjectNameIsSet(true);
29071 }
29072 }
29073 }
29074
29075 }
29076
29077 public static class getSchema_result implements org.apache.thrift.TBase<getSchema_result, getSchema_result._Fields>, java.io.Serializable, Cloneable, Comparable<getSchema_result> {
29078 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSchema_result");
29079
29080 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
29081 private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
29082
29083 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
29084 static {
29085 schemes.put(StandardScheme.class, new getSchema_resultStandardSchemeFactory());
29086 schemes.put(TupleScheme.class, new getSchema_resultTupleSchemeFactory());
29087 }
29088
29089 public Schema success;
29090 public CentralDogmaException e;
29091
29092
29093 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
29094 SUCCESS((short)0, "success"),
29095 E((short)1, "e");
29096
29097 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
29098
29099 static {
29100 for (_Fields field : EnumSet.allOf(_Fields.class)) {
29101 byName.put(field.getFieldName(), field);
29102 }
29103 }
29104
29105
29106
29107
29108 public static _Fields findByThriftId(int fieldId) {
29109 switch(fieldId) {
29110 case 0:
29111 return SUCCESS;
29112 case 1:
29113 return E;
29114 default:
29115 return null;
29116 }
29117 }
29118
29119
29120
29121
29122
29123 public static _Fields findByThriftIdOrThrow(int fieldId) {
29124 _Fields fields = findByThriftId(fieldId);
29125 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
29126 return fields;
29127 }
29128
29129
29130
29131
29132 public static _Fields findByName(String name) {
29133 return byName.get(name);
29134 }
29135
29136 private final short _thriftId;
29137 private final String _fieldName;
29138
29139 _Fields(short thriftId, String fieldName) {
29140 _thriftId = thriftId;
29141 _fieldName = fieldName;
29142 }
29143
29144 public short getThriftFieldId() {
29145 return _thriftId;
29146 }
29147
29148 public String getFieldName() {
29149 return _fieldName;
29150 }
29151 }
29152
29153
29154 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
29155 static {
29156 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
29157 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
29158 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Schema.class)));
29159 tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
29160 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
29161 metaDataMap = Collections.unmodifiableMap(tmpMap);
29162 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSchema_result.class, metaDataMap);
29163 }
29164
29165 public getSchema_result() {
29166 }
29167
29168 public getSchema_result(
29169 Schema success,
29170 CentralDogmaException e)
29171 {
29172 this();
29173 this.success = success;
29174 this.e = e;
29175 }
29176
29177
29178
29179
29180 public getSchema_result(getSchema_result other) {
29181 if (other.isSetSuccess()) {
29182 this.success = new Schema(other.success);
29183 }
29184 if (other.isSetE()) {
29185 this.e = new CentralDogmaException(other.e);
29186 }
29187 }
29188
29189 public getSchema_result deepCopy() {
29190 return new getSchema_result(this);
29191 }
29192
29193 @Override
29194 public void clear() {
29195 this.success = null;
29196 this.e = null;
29197 }
29198
29199 public Schema getSuccess() {
29200 return this.success;
29201 }
29202
29203 public getSchema_result setSuccess(Schema success) {
29204 this.success = success;
29205 return this;
29206 }
29207
29208 public void unsetSuccess() {
29209 this.success = null;
29210 }
29211
29212
29213 public boolean isSetSuccess() {
29214 return this.success != null;
29215 }
29216
29217 public void setSuccessIsSet(boolean value) {
29218 if (!value) {
29219 this.success = null;
29220 }
29221 }
29222
29223 public CentralDogmaException getE() {
29224 return this.e;
29225 }
29226
29227 public getSchema_result setE(CentralDogmaException e) {
29228 this.e = e;
29229 return this;
29230 }
29231
29232 public void unsetE() {
29233 this.e = null;
29234 }
29235
29236
29237 public boolean isSetE() {
29238 return this.e != null;
29239 }
29240
29241 public void setEIsSet(boolean value) {
29242 if (!value) {
29243 this.e = null;
29244 }
29245 }
29246
29247 public void setFieldValue(_Fields field, Object value) {
29248 switch (field) {
29249 case SUCCESS:
29250 if (value == null) {
29251 unsetSuccess();
29252 } else {
29253 setSuccess((Schema)value);
29254 }
29255 break;
29256
29257 case E:
29258 if (value == null) {
29259 unsetE();
29260 } else {
29261 setE((CentralDogmaException)value);
29262 }
29263 break;
29264
29265 }
29266 }
29267
29268 public Object getFieldValue(_Fields field) {
29269 switch (field) {
29270 case SUCCESS:
29271 return getSuccess();
29272
29273 case E:
29274 return getE();
29275
29276 }
29277 throw new IllegalStateException();
29278 }
29279
29280
29281 public boolean isSet(_Fields field) {
29282 if (field == null) {
29283 throw new IllegalArgumentException();
29284 }
29285
29286 switch (field) {
29287 case SUCCESS:
29288 return isSetSuccess();
29289 case E:
29290 return isSetE();
29291 }
29292 throw new IllegalStateException();
29293 }
29294
29295 @Override
29296 public boolean equals(Object that) {
29297 if (that == null)
29298 return false;
29299 if (that instanceof getSchema_result)
29300 return this.equals((getSchema_result)that);
29301 return false;
29302 }
29303
29304 public boolean equals(getSchema_result that) {
29305 if (that == null)
29306 return false;
29307
29308 boolean this_present_success = true && this.isSetSuccess();
29309 boolean that_present_success = true && that.isSetSuccess();
29310 if (this_present_success || that_present_success) {
29311 if (!(this_present_success && that_present_success))
29312 return false;
29313 if (!this.success.equals(that.success))
29314 return false;
29315 }
29316
29317 boolean this_present_e = true && this.isSetE();
29318 boolean that_present_e = true && that.isSetE();
29319 if (this_present_e || that_present_e) {
29320 if (!(this_present_e && that_present_e))
29321 return false;
29322 if (!this.e.equals(that.e))
29323 return false;
29324 }
29325
29326 return true;
29327 }
29328
29329 @Override
29330 public int hashCode() {
29331 List<Object> list = new ArrayList<Object>();
29332
29333 boolean present_success = true && (isSetSuccess());
29334 list.add(present_success);
29335 if (present_success)
29336 list.add(success);
29337
29338 boolean present_e = true && (isSetE());
29339 list.add(present_e);
29340 if (present_e)
29341 list.add(e);
29342
29343 return list.hashCode();
29344 }
29345
29346 @Override
29347 public int compareTo(getSchema_result other) {
29348 if (!getClass().equals(other.getClass())) {
29349 return getClass().getName().compareTo(other.getClass().getName());
29350 }
29351
29352 int lastComparison = 0;
29353
29354 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
29355 if (lastComparison != 0) {
29356 return lastComparison;
29357 }
29358 if (isSetSuccess()) {
29359 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
29360 if (lastComparison != 0) {
29361 return lastComparison;
29362 }
29363 }
29364 lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE());
29365 if (lastComparison != 0) {
29366 return lastComparison;
29367 }
29368 if (isSetE()) {
29369 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e);
29370 if (lastComparison != 0) {
29371 return lastComparison;
29372 }
29373 }
29374 return 0;
29375 }
29376
29377 public _Fields fieldForId(int fieldId) {
29378 return _Fields.findByThriftId(fieldId);
29379 }
29380
29381 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
29382 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
29383 }
29384
29385 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
29386 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
29387 }
29388
29389 @Override
29390 public String toString() {
29391 StringBuilder sb = new StringBuilder("getSchema_result(");
29392 boolean first = true;
29393
29394 sb.append("success:");
29395 if (this.success == null) {
29396 sb.append("null");
29397 } else {
29398 sb.append(this.success);
29399 }
29400 first = false;
29401 if (!first) sb.append(", ");
29402 sb.append("e:");
29403 if (this.e == null) {
29404 sb.append("null");
29405 } else {
29406 sb.append(this.e);
29407 }
29408 first = false;
29409 sb.append(")");
29410 return sb.toString();
29411 }
29412
29413 public void validate() throws org.apache.thrift.TException {
29414
29415
29416 if (success != null) {
29417 success.validate();
29418 }
29419 }
29420
29421 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
29422 try {
29423 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
29424 } catch (org.apache.thrift.TException te) {
29425 throw new java.io.IOException(te);
29426 }
29427 }
29428
29429 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
29430 try {
29431 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
29432 } catch (org.apache.thrift.TException te) {
29433 throw new java.io.IOException(te);
29434 }
29435 }
29436
29437 private static class getSchema_resultStandardSchemeFactory implements SchemeFactory {
29438 public getSchema_resultStandardScheme getScheme() {
29439 return new getSchema_resultStandardScheme();
29440 }
29441 }
29442
29443 private static class getSchema_resultStandardScheme extends StandardScheme<getSchema_result> {
29444
29445 public void read(org.apache.thrift.protocol.TProtocol iprot, getSchema_result struct) throws org.apache.thrift.TException {
29446 org.apache.thrift.protocol.TField schemeField;
29447 iprot.readStructBegin();
29448 while (true)
29449 {
29450 schemeField = iprot.readFieldBegin();
29451 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
29452 break;
29453 }
29454 switch (schemeField.id) {
29455 case 0:
29456 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
29457 struct.success = new Schema();
29458 struct.success.read(iprot);
29459 struct.setSuccessIsSet(true);
29460 } else {
29461 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
29462 }
29463 break;
29464 case 1:
29465 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
29466 struct.e = new CentralDogmaException();
29467 struct.e.read(iprot);
29468 struct.setEIsSet(true);
29469 } else {
29470 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
29471 }
29472 break;
29473 default:
29474 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
29475 }
29476 iprot.readFieldEnd();
29477 }
29478 iprot.readStructEnd();
29479
29480
29481 struct.validate();
29482 }
29483
29484 public void write(org.apache.thrift.protocol.TProtocol oprot, getSchema_result struct) throws org.apache.thrift.TException {
29485 struct.validate();
29486
29487 oprot.writeStructBegin(STRUCT_DESC);
29488 if (struct.success != null) {
29489 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
29490 struct.success.write(oprot);
29491 oprot.writeFieldEnd();
29492 }
29493 if (struct.e != null) {
29494 oprot.writeFieldBegin(E_FIELD_DESC);
29495 struct.e.write(oprot);
29496 oprot.writeFieldEnd();
29497 }
29498 oprot.writeFieldStop();
29499 oprot.writeStructEnd();
29500 }
29501
29502 }
29503
29504 private static class getSchema_resultTupleSchemeFactory implements SchemeFactory {
29505 public getSchema_resultTupleScheme getScheme() {
29506 return new getSchema_resultTupleScheme();
29507 }
29508 }
29509
29510 private static class getSchema_resultTupleScheme extends TupleScheme<getSchema_result> {
29511
29512 @Override
29513 public void write(org.apache.thrift.protocol.TProtocol prot, getSchema_result struct) throws org.apache.thrift.TException {
29514 TTupleProtocol oprot = (TTupleProtocol) prot;
29515 BitSet optionals = new BitSet();
29516 if (struct.isSetSuccess()) {
29517 optionals.set(0);
29518 }
29519 if (struct.isSetE()) {
29520 optionals.set(1);
29521 }
29522 oprot.writeBitSet(optionals, 2);
29523 if (struct.isSetSuccess()) {
29524 struct.success.write(oprot);
29525 }
29526 if (struct.isSetE()) {
29527 struct.e.write(oprot);
29528 }
29529 }
29530
29531 @Override
29532 public void read(org.apache.thrift.protocol.TProtocol prot, getSchema_result struct) throws org.apache.thrift.TException {
29533 TTupleProtocol iprot = (TTupleProtocol) prot;
29534 BitSet incoming = iprot.readBitSet(2);
29535 if (incoming.get(0)) {
29536 struct.success = new Schema();
29537 struct.success.read(iprot);
29538 struct.setSuccessIsSet(true);
29539 }
29540 if (incoming.get(1)) {
29541 struct.e = new CentralDogmaException();
29542 struct.e.read(iprot);
29543 struct.setEIsSet(true);
29544 }
29545 }
29546 }
29547
29548 }
29549
29550 public static class saveSchema_args implements org.apache.thrift.TBase<saveSchema_args, saveSchema_args._Fields>, java.io.Serializable, Cloneable, Comparable<saveSchema_args> {
29551 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveSchema_args");
29552
29553 private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)1);
29554 private static final org.apache.thrift.protocol.TField SCHEMA_FIELD_DESC = new org.apache.thrift.protocol.TField("schema", org.apache.thrift.protocol.TType.STRUCT, (short)2);
29555
29556 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
29557 static {
29558 schemes.put(StandardScheme.class, new saveSchema_argsStandardSchemeFactory());
29559 schemes.put(TupleScheme.class, new saveSchema_argsTupleSchemeFactory());
29560 }
29561
29562 public String projectName;
29563 public Schema schema;
29564
29565
29566 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
29567 PROJECT_NAME((short)1, "projectName"),
29568 SCHEMA((short)2, "schema");
29569
29570 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
29571
29572 static {
29573 for (_Fields field : EnumSet.allOf(_Fields.class)) {
29574 byName.put(field.getFieldName(), field);
29575 }
29576 }
29577
29578
29579
29580
29581 public static _Fields findByThriftId(int fieldId) {
29582 switch(fieldId) {
29583 case 1:
29584 return PROJECT_NAME;
29585 case 2:
29586 return SCHEMA;
29587 default:
29588 return null;
29589 }
29590 }
29591
29592
29593
29594
29595
29596 public static _Fields findByThriftIdOrThrow(int fieldId) {
29597 _Fields fields = findByThriftId(fieldId);
29598 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
29599 return fields;
29600 }
29601
29602
29603
29604
29605 public static _Fields findByName(String name) {
29606 return byName.get(name);
29607 }
29608
29609 private final short _thriftId;
29610 private final String _fieldName;
29611
29612 _Fields(short thriftId, String fieldName) {
29613 _thriftId = thriftId;
29614 _fieldName = fieldName;
29615 }
29616
29617 public short getThriftFieldId() {
29618 return _thriftId;
29619 }
29620
29621 public String getFieldName() {
29622 return _fieldName;
29623 }
29624 }
29625
29626
29627 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
29628 static {
29629 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
29630 tmpMap.put(_Fields.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", org.apache.thrift.TFieldRequirementType.DEFAULT,
29631 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
29632 tmpMap.put(_Fields.SCHEMA, new org.apache.thrift.meta_data.FieldMetaData("schema", org.apache.thrift.TFieldRequirementType.DEFAULT,
29633 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Schema.class)));
29634 metaDataMap = Collections.unmodifiableMap(tmpMap);
29635 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveSchema_args.class, metaDataMap);
29636 }
29637
29638 public saveSchema_args() {
29639 }
29640
29641 public saveSchema_args(
29642 String projectName,
29643 Schema schema)
29644 {
29645 this();
29646 this.projectName = projectName;
29647 this.schema = schema;
29648 }
29649
29650
29651
29652
29653 public saveSchema_args(saveSchema_args other) {
29654 if (other.isSetProjectName()) {
29655 this.projectName = other.projectName;
29656 }
29657 if (other.isSetSchema()) {
29658 this.schema = new Schema(other.schema);
29659 }
29660 }
29661
29662 public saveSchema_args deepCopy() {
29663 return new saveSchema_args(this);
29664 }
29665
29666 @Override
29667 public void clear() {
29668 this.projectName = null;
29669 this.schema = null;
29670 }
29671
29672 public String getProjectName() {
29673 return this.projectName;
29674 }
29675
29676 public saveSchema_args setProjectName(String projectName) {
29677 this.projectName = projectName;
29678 return this;
29679 }
29680
29681 public void unsetProjectName() {
29682 this.projectName = null;
29683 }
29684
29685
29686 public boolean isSetProjectName() {
29687 return this.projectName != null;
29688 }
29689
29690 public void setProjectNameIsSet(boolean value) {
29691 if (!value) {
29692 this.projectName = null;
29693 }
29694 }
29695
29696 public Schema getSchema() {
29697 return this.schema;
29698 }
29699
29700 public saveSchema_args setSchema(Schema schema) {
29701 this.schema = schema;
29702 return this;
29703 }
29704
29705 public void unsetSchema() {
29706 this.schema = null;
29707 }
29708
29709
29710 public boolean isSetSchema() {
29711 return this.schema != null;
29712 }
29713
29714 public void setSchemaIsSet(boolean value) {
29715 if (!value) {
29716 this.schema = null;
29717 }
29718 }
29719
29720 public void setFieldValue(_Fields field, Object value) {
29721 switch (field) {
29722 case PROJECT_NAME:
29723 if (value == null) {
29724 unsetProjectName();
29725 } else {
29726 setProjectName((String)value);
29727 }
29728 break;
29729
29730 case SCHEMA:
29731 if (value == null) {
29732 unsetSchema();
29733 } else {
29734 setSchema((Schema)value);
29735 }
29736 break;
29737
29738 }
29739 }
29740
29741 public Object getFieldValue(_Fields field) {
29742 switch (field) {
29743 case PROJECT_NAME:
29744 return getProjectName();
29745
29746 case SCHEMA:
29747 return getSchema();
29748
29749 }
29750 throw new IllegalStateException();
29751 }
29752
29753
29754 public boolean isSet(_Fields field) {
29755 if (field == null) {
29756 throw new IllegalArgumentException();
29757 }
29758
29759 switch (field) {
29760 case PROJECT_NAME:
29761 return isSetProjectName();
29762 case SCHEMA:
29763 return isSetSchema();
29764 }
29765 throw new IllegalStateException();
29766 }
29767
29768 @Override
29769 public boolean equals(Object that) {
29770 if (that == null)
29771 return false;
29772 if (that instanceof saveSchema_args)
29773 return this.equals((saveSchema_args)that);
29774 return false;
29775 }
29776
29777 public boolean equals(saveSchema_args that) {
29778 if (that == null)
29779 return false;
29780
29781 boolean this_present_projectName = true && this.isSetProjectName();
29782 boolean that_present_projectName = true && that.isSetProjectName();
29783 if (this_present_projectName || that_present_projectName) {
29784 if (!(this_present_projectName && that_present_projectName))
29785 return false;
29786 if (!this.projectName.equals(that.projectName))
29787 return false;
29788 }
29789
29790 boolean this_present_schema = true && this.isSetSchema();
29791 boolean that_present_schema = true && that.isSetSchema();
29792 if (this_present_schema || that_present_schema) {
29793 if (!(this_present_schema && that_present_schema))
29794 return false;
29795 if (!this.schema.equals(that.schema))
29796 return false;
29797 }
29798
29799 return true;
29800 }
29801
29802 @Override
29803 public int hashCode() {
29804 List<Object> list = new ArrayList<Object>();
29805
29806 boolean present_projectName = true && (isSetProjectName());
29807 list.add(present_projectName);
29808 if (present_projectName)
29809 list.add(projectName);
29810
29811 boolean present_schema = true && (isSetSchema());
29812 list.add(present_schema);
29813 if (present_schema)
29814 list.add(schema);
29815
29816 return list.hashCode();
29817 }
29818
29819 @Override
29820 public int compareTo(saveSchema_args other) {
29821 if (!getClass().equals(other.getClass())) {
29822 return getClass().getName().compareTo(other.getClass().getName());
29823 }
29824
29825 int lastComparison = 0;
29826
29827 lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName());
29828 if (lastComparison != 0) {
29829 return lastComparison;
29830 }
29831 if (isSetProjectName()) {
29832 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName);
29833 if (lastComparison != 0) {
29834 return lastComparison;
29835 }
29836 }
29837 lastComparison = Boolean.valueOf(isSetSchema()).compareTo(other.isSetSchema());
29838 if (lastComparison != 0) {
29839 return lastComparison;
29840 }
29841 if (isSetSchema()) {
29842 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.schema, other.schema);
29843 if (lastComparison != 0) {
29844 return lastComparison;
29845 }
29846 }
29847 return 0;
29848 }
29849
29850 public _Fields fieldForId(int fieldId) {
29851 return _Fields.findByThriftId(fieldId);
29852 }
29853
29854 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
29855 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
29856 }
29857
29858 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
29859 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
29860 }
29861
29862 @Override
29863 public String toString() {
29864 StringBuilder sb = new StringBuilder("saveSchema_args(");
29865 boolean first = true;
29866
29867 sb.append("projectName:");
29868 if (this.projectName == null) {
29869 sb.append("null");
29870 } else {
29871 sb.append(this.projectName);
29872 }
29873 first = false;
29874 if (!first) sb.append(", ");
29875 sb.append("schema:");
29876 if (this.schema == null) {
29877 sb.append("null");
29878 } else {
29879 sb.append(this.schema);
29880 }
29881 first = false;
29882 sb.append(")");
29883 return sb.toString();
29884 }
29885
29886 public void validate() throws org.apache.thrift.TException {
29887
29888
29889 if (schema != null) {
29890 schema.validate();
29891 }
29892 }
29893
29894 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
29895 try {
29896 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
29897 } catch (org.apache.thrift.TException te) {
29898 throw new java.io.IOException(te);
29899 }
29900 }
29901
29902 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
29903 try {
29904 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
29905 } catch (org.apache.thrift.TException te) {
29906 throw new java.io.IOException(te);
29907 }
29908 }
29909
29910 private static class saveSchema_argsStandardSchemeFactory implements SchemeFactory {
29911 public saveSchema_argsStandardScheme getScheme() {
29912 return new saveSchema_argsStandardScheme();
29913 }
29914 }
29915
29916 private static class saveSchema_argsStandardScheme extends StandardScheme<saveSchema_args> {
29917
29918 public void read(org.apache.thrift.protocol.TProtocol iprot, saveSchema_args struct) throws org.apache.thrift.TException {
29919 org.apache.thrift.protocol.TField schemeField;
29920 iprot.readStructBegin();
29921 while (true)
29922 {
29923 schemeField = iprot.readFieldBegin();
29924 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
29925 break;
29926 }
29927 switch (schemeField.id) {
29928 case 1:
29929 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
29930 struct.projectName = iprot.readString();
29931 struct.setProjectNameIsSet(true);
29932 } else {
29933 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
29934 }
29935 break;
29936 case 2:
29937 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
29938 struct.schema = new Schema();
29939 struct.schema.read(iprot);
29940 struct.setSchemaIsSet(true);
29941 } else {
29942 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
29943 }
29944 break;
29945 default:
29946 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
29947 }
29948 iprot.readFieldEnd();
29949 }
29950 iprot.readStructEnd();
29951
29952
29953 struct.validate();
29954 }
29955
29956 public void write(org.apache.thrift.protocol.TProtocol oprot, saveSchema_args struct) throws org.apache.thrift.TException {
29957 struct.validate();
29958
29959 oprot.writeStructBegin(STRUCT_DESC);
29960 if (struct.projectName != null) {
29961 oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC);
29962 oprot.writeString(struct.projectName);
29963 oprot.writeFieldEnd();
29964 }
29965 if (struct.schema != null) {
29966 oprot.writeFieldBegin(SCHEMA_FIELD_DESC);
29967 struct.schema.write(oprot);
29968 oprot.writeFieldEnd();
29969 }
29970 oprot.writeFieldStop();
29971 oprot.writeStructEnd();
29972 }
29973
29974 }
29975
29976 private static class saveSchema_argsTupleSchemeFactory implements SchemeFactory {
29977 public saveSchema_argsTupleScheme getScheme() {
29978 return new saveSchema_argsTupleScheme();
29979 }
29980 }
29981
29982 private static class saveSchema_argsTupleScheme extends TupleScheme<saveSchema_args> {
29983
29984 @Override
29985 public void write(org.apache.thrift.protocol.TProtocol prot, saveSchema_args struct) throws org.apache.thrift.TException {
29986 TTupleProtocol oprot = (TTupleProtocol) prot;
29987 BitSet optionals = new BitSet();
29988 if (struct.isSetProjectName()) {
29989 optionals.set(0);
29990 }
29991 if (struct.isSetSchema()) {
29992 optionals.set(1);
29993 }
29994 oprot.writeBitSet(optionals, 2);
29995 if (struct.isSetProjectName()) {
29996 oprot.writeString(struct.projectName);
29997 }
29998 if (struct.isSetSchema()) {
29999 struct.schema.write(oprot);
30000 }
30001 }
30002
30003 @Override
30004 public void read(org.apache.thrift.protocol.TProtocol prot, saveSchema_args struct) throws org.apache.thrift.TException {
30005 TTupleProtocol iprot = (TTupleProtocol) prot;
30006 BitSet incoming = iprot.readBitSet(2);
30007 if (incoming.get(0)) {
30008 struct.projectName = iprot.readString();
30009 struct.setProjectNameIsSet(true);
30010 }
30011 if (incoming.get(1)) {
30012 struct.schema = new Schema();
30013 struct.schema.read(iprot);
30014 struct.setSchemaIsSet(true);
30015 }
30016 }
30017 }
30018
30019 }
30020
30021 public static class saveSchema_result implements org.apache.thrift.TBase<saveSchema_result, saveSchema_result._Fields>, java.io.Serializable, Cloneable, Comparable<saveSchema_result> {
30022 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveSchema_result");
30023
30024 private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
30025
30026 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
30027 static {
30028 schemes.put(StandardScheme.class, new saveSchema_resultStandardSchemeFactory());
30029 schemes.put(TupleScheme.class, new saveSchema_resultTupleSchemeFactory());
30030 }
30031
30032 public CentralDogmaException e;
30033
30034
30035 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
30036 E((short)1, "e");
30037
30038 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
30039
30040 static {
30041 for (_Fields field : EnumSet.allOf(_Fields.class)) {
30042 byName.put(field.getFieldName(), field);
30043 }
30044 }
30045
30046
30047
30048
30049 public static _Fields findByThriftId(int fieldId) {
30050 switch(fieldId) {
30051 case 1:
30052 return E;
30053 default:
30054 return null;
30055 }
30056 }
30057
30058
30059
30060
30061
30062 public static _Fields findByThriftIdOrThrow(int fieldId) {
30063 _Fields fields = findByThriftId(fieldId);
30064 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
30065 return fields;
30066 }
30067
30068
30069
30070
30071 public static _Fields findByName(String name) {
30072 return byName.get(name);
30073 }
30074
30075 private final short _thriftId;
30076 private final String _fieldName;
30077
30078 _Fields(short thriftId, String fieldName) {
30079 _thriftId = thriftId;
30080 _fieldName = fieldName;
30081 }
30082
30083 public short getThriftFieldId() {
30084 return _thriftId;
30085 }
30086
30087 public String getFieldName() {
30088 return _fieldName;
30089 }
30090 }
30091
30092
30093 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
30094 static {
30095 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
30096 tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
30097 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
30098 metaDataMap = Collections.unmodifiableMap(tmpMap);
30099 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveSchema_result.class, metaDataMap);
30100 }
30101
30102 public saveSchema_result() {
30103 }
30104
30105 public saveSchema_result(
30106 CentralDogmaException e)
30107 {
30108 this();
30109 this.e = e;
30110 }
30111
30112
30113
30114
30115 public saveSchema_result(saveSchema_result other) {
30116 if (other.isSetE()) {
30117 this.e = new CentralDogmaException(other.e);
30118 }
30119 }
30120
30121 public saveSchema_result deepCopy() {
30122 return new saveSchema_result(this);
30123 }
30124
30125 @Override
30126 public void clear() {
30127 this.e = null;
30128 }
30129
30130 public CentralDogmaException getE() {
30131 return this.e;
30132 }
30133
30134 public saveSchema_result setE(CentralDogmaException e) {
30135 this.e = e;
30136 return this;
30137 }
30138
30139 public void unsetE() {
30140 this.e = null;
30141 }
30142
30143
30144 public boolean isSetE() {
30145 return this.e != null;
30146 }
30147
30148 public void setEIsSet(boolean value) {
30149 if (!value) {
30150 this.e = null;
30151 }
30152 }
30153
30154 public void setFieldValue(_Fields field, Object value) {
30155 switch (field) {
30156 case E:
30157 if (value == null) {
30158 unsetE();
30159 } else {
30160 setE((CentralDogmaException)value);
30161 }
30162 break;
30163
30164 }
30165 }
30166
30167 public Object getFieldValue(_Fields field) {
30168 switch (field) {
30169 case E:
30170 return getE();
30171
30172 }
30173 throw new IllegalStateException();
30174 }
30175
30176
30177 public boolean isSet(_Fields field) {
30178 if (field == null) {
30179 throw new IllegalArgumentException();
30180 }
30181
30182 switch (field) {
30183 case E:
30184 return isSetE();
30185 }
30186 throw new IllegalStateException();
30187 }
30188
30189 @Override
30190 public boolean equals(Object that) {
30191 if (that == null)
30192 return false;
30193 if (that instanceof saveSchema_result)
30194 return this.equals((saveSchema_result)that);
30195 return false;
30196 }
30197
30198 public boolean equals(saveSchema_result that) {
30199 if (that == null)
30200 return false;
30201
30202 boolean this_present_e = true && this.isSetE();
30203 boolean that_present_e = true && that.isSetE();
30204 if (this_present_e || that_present_e) {
30205 if (!(this_present_e && that_present_e))
30206 return false;
30207 if (!this.e.equals(that.e))
30208 return false;
30209 }
30210
30211 return true;
30212 }
30213
30214 @Override
30215 public int hashCode() {
30216 List<Object> list = new ArrayList<Object>();
30217
30218 boolean present_e = true && (isSetE());
30219 list.add(present_e);
30220 if (present_e)
30221 list.add(e);
30222
30223 return list.hashCode();
30224 }
30225
30226 @Override
30227 public int compareTo(saveSchema_result other) {
30228 if (!getClass().equals(other.getClass())) {
30229 return getClass().getName().compareTo(other.getClass().getName());
30230 }
30231
30232 int lastComparison = 0;
30233
30234 lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE());
30235 if (lastComparison != 0) {
30236 return lastComparison;
30237 }
30238 if (isSetE()) {
30239 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e);
30240 if (lastComparison != 0) {
30241 return lastComparison;
30242 }
30243 }
30244 return 0;
30245 }
30246
30247 public _Fields fieldForId(int fieldId) {
30248 return _Fields.findByThriftId(fieldId);
30249 }
30250
30251 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
30252 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
30253 }
30254
30255 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
30256 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
30257 }
30258
30259 @Override
30260 public String toString() {
30261 StringBuilder sb = new StringBuilder("saveSchema_result(");
30262 boolean first = true;
30263
30264 sb.append("e:");
30265 if (this.e == null) {
30266 sb.append("null");
30267 } else {
30268 sb.append(this.e);
30269 }
30270 first = false;
30271 sb.append(")");
30272 return sb.toString();
30273 }
30274
30275 public void validate() throws org.apache.thrift.TException {
30276
30277
30278 }
30279
30280 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
30281 try {
30282 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
30283 } catch (org.apache.thrift.TException te) {
30284 throw new java.io.IOException(te);
30285 }
30286 }
30287
30288 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
30289 try {
30290 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
30291 } catch (org.apache.thrift.TException te) {
30292 throw new java.io.IOException(te);
30293 }
30294 }
30295
30296 private static class saveSchema_resultStandardSchemeFactory implements SchemeFactory {
30297 public saveSchema_resultStandardScheme getScheme() {
30298 return new saveSchema_resultStandardScheme();
30299 }
30300 }
30301
30302 private static class saveSchema_resultStandardScheme extends StandardScheme<saveSchema_result> {
30303
30304 public void read(org.apache.thrift.protocol.TProtocol iprot, saveSchema_result struct) throws org.apache.thrift.TException {
30305 org.apache.thrift.protocol.TField schemeField;
30306 iprot.readStructBegin();
30307 while (true)
30308 {
30309 schemeField = iprot.readFieldBegin();
30310 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
30311 break;
30312 }
30313 switch (schemeField.id) {
30314 case 1:
30315 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
30316 struct.e = new CentralDogmaException();
30317 struct.e.read(iprot);
30318 struct.setEIsSet(true);
30319 } else {
30320 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
30321 }
30322 break;
30323 default:
30324 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
30325 }
30326 iprot.readFieldEnd();
30327 }
30328 iprot.readStructEnd();
30329
30330
30331 struct.validate();
30332 }
30333
30334 public void write(org.apache.thrift.protocol.TProtocol oprot, saveSchema_result struct) throws org.apache.thrift.TException {
30335 struct.validate();
30336
30337 oprot.writeStructBegin(STRUCT_DESC);
30338 if (struct.e != null) {
30339 oprot.writeFieldBegin(E_FIELD_DESC);
30340 struct.e.write(oprot);
30341 oprot.writeFieldEnd();
30342 }
30343 oprot.writeFieldStop();
30344 oprot.writeStructEnd();
30345 }
30346
30347 }
30348
30349 private static class saveSchema_resultTupleSchemeFactory implements SchemeFactory {
30350 public saveSchema_resultTupleScheme getScheme() {
30351 return new saveSchema_resultTupleScheme();
30352 }
30353 }
30354
30355 private static class saveSchema_resultTupleScheme extends TupleScheme<saveSchema_result> {
30356
30357 @Override
30358 public void write(org.apache.thrift.protocol.TProtocol prot, saveSchema_result struct) throws org.apache.thrift.TException {
30359 TTupleProtocol oprot = (TTupleProtocol) prot;
30360 BitSet optionals = new BitSet();
30361 if (struct.isSetE()) {
30362 optionals.set(0);
30363 }
30364 oprot.writeBitSet(optionals, 1);
30365 if (struct.isSetE()) {
30366 struct.e.write(oprot);
30367 }
30368 }
30369
30370 @Override
30371 public void read(org.apache.thrift.protocol.TProtocol prot, saveSchema_result struct) throws org.apache.thrift.TException {
30372 TTupleProtocol iprot = (TTupleProtocol) prot;
30373 BitSet incoming = iprot.readBitSet(1);
30374 if (incoming.get(0)) {
30375 struct.e = new CentralDogmaException();
30376 struct.e.read(iprot);
30377 struct.setEIsSet(true);
30378 }
30379 }
30380 }
30381
30382 }
30383
30384 public static class getNamedQuery_args implements org.apache.thrift.TBase<getNamedQuery_args, getNamedQuery_args._Fields>, java.io.Serializable, Cloneable, Comparable<getNamedQuery_args> {
30385 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getNamedQuery_args");
30386
30387 private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)1);
30388 private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)2);
30389
30390 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
30391 static {
30392 schemes.put(StandardScheme.class, new getNamedQuery_argsStandardSchemeFactory());
30393 schemes.put(TupleScheme.class, new getNamedQuery_argsTupleSchemeFactory());
30394 }
30395
30396 public String projectName;
30397 public String name;
30398
30399
30400 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
30401 PROJECT_NAME((short)1, "projectName"),
30402 NAME((short)2, "name");
30403
30404 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
30405
30406 static {
30407 for (_Fields field : EnumSet.allOf(_Fields.class)) {
30408 byName.put(field.getFieldName(), field);
30409 }
30410 }
30411
30412
30413
30414
30415 public static _Fields findByThriftId(int fieldId) {
30416 switch(fieldId) {
30417 case 1:
30418 return PROJECT_NAME;
30419 case 2:
30420 return NAME;
30421 default:
30422 return null;
30423 }
30424 }
30425
30426
30427
30428
30429
30430 public static _Fields findByThriftIdOrThrow(int fieldId) {
30431 _Fields fields = findByThriftId(fieldId);
30432 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
30433 return fields;
30434 }
30435
30436
30437
30438
30439 public static _Fields findByName(String name) {
30440 return byName.get(name);
30441 }
30442
30443 private final short _thriftId;
30444 private final String _fieldName;
30445
30446 _Fields(short thriftId, String fieldName) {
30447 _thriftId = thriftId;
30448 _fieldName = fieldName;
30449 }
30450
30451 public short getThriftFieldId() {
30452 return _thriftId;
30453 }
30454
30455 public String getFieldName() {
30456 return _fieldName;
30457 }
30458 }
30459
30460
30461 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
30462 static {
30463 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
30464 tmpMap.put(_Fields.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", org.apache.thrift.TFieldRequirementType.DEFAULT,
30465 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
30466 tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT,
30467 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
30468 metaDataMap = Collections.unmodifiableMap(tmpMap);
30469 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getNamedQuery_args.class, metaDataMap);
30470 }
30471
30472 public getNamedQuery_args() {
30473 }
30474
30475 public getNamedQuery_args(
30476 String projectName,
30477 String name)
30478 {
30479 this();
30480 this.projectName = projectName;
30481 this.name = name;
30482 }
30483
30484
30485
30486
30487 public getNamedQuery_args(getNamedQuery_args other) {
30488 if (other.isSetProjectName()) {
30489 this.projectName = other.projectName;
30490 }
30491 if (other.isSetName()) {
30492 this.name = other.name;
30493 }
30494 }
30495
30496 public getNamedQuery_args deepCopy() {
30497 return new getNamedQuery_args(this);
30498 }
30499
30500 @Override
30501 public void clear() {
30502 this.projectName = null;
30503 this.name = null;
30504 }
30505
30506 public String getProjectName() {
30507 return this.projectName;
30508 }
30509
30510 public getNamedQuery_args setProjectName(String projectName) {
30511 this.projectName = projectName;
30512 return this;
30513 }
30514
30515 public void unsetProjectName() {
30516 this.projectName = null;
30517 }
30518
30519
30520 public boolean isSetProjectName() {
30521 return this.projectName != null;
30522 }
30523
30524 public void setProjectNameIsSet(boolean value) {
30525 if (!value) {
30526 this.projectName = null;
30527 }
30528 }
30529
30530 public String getName() {
30531 return this.name;
30532 }
30533
30534 public getNamedQuery_args setName(String name) {
30535 this.name = name;
30536 return this;
30537 }
30538
30539 public void unsetName() {
30540 this.name = null;
30541 }
30542
30543
30544 public boolean isSetName() {
30545 return this.name != null;
30546 }
30547
30548 public void setNameIsSet(boolean value) {
30549 if (!value) {
30550 this.name = null;
30551 }
30552 }
30553
30554 public void setFieldValue(_Fields field, Object value) {
30555 switch (field) {
30556 case PROJECT_NAME:
30557 if (value == null) {
30558 unsetProjectName();
30559 } else {
30560 setProjectName((String)value);
30561 }
30562 break;
30563
30564 case NAME:
30565 if (value == null) {
30566 unsetName();
30567 } else {
30568 setName((String)value);
30569 }
30570 break;
30571
30572 }
30573 }
30574
30575 public Object getFieldValue(_Fields field) {
30576 switch (field) {
30577 case PROJECT_NAME:
30578 return getProjectName();
30579
30580 case NAME:
30581 return getName();
30582
30583 }
30584 throw new IllegalStateException();
30585 }
30586
30587
30588 public boolean isSet(_Fields field) {
30589 if (field == null) {
30590 throw new IllegalArgumentException();
30591 }
30592
30593 switch (field) {
30594 case PROJECT_NAME:
30595 return isSetProjectName();
30596 case NAME:
30597 return isSetName();
30598 }
30599 throw new IllegalStateException();
30600 }
30601
30602 @Override
30603 public boolean equals(Object that) {
30604 if (that == null)
30605 return false;
30606 if (that instanceof getNamedQuery_args)
30607 return this.equals((getNamedQuery_args)that);
30608 return false;
30609 }
30610
30611 public boolean equals(getNamedQuery_args that) {
30612 if (that == null)
30613 return false;
30614
30615 boolean this_present_projectName = true && this.isSetProjectName();
30616 boolean that_present_projectName = true && that.isSetProjectName();
30617 if (this_present_projectName || that_present_projectName) {
30618 if (!(this_present_projectName && that_present_projectName))
30619 return false;
30620 if (!this.projectName.equals(that.projectName))
30621 return false;
30622 }
30623
30624 boolean this_present_name = true && this.isSetName();
30625 boolean that_present_name = true && that.isSetName();
30626 if (this_present_name || that_present_name) {
30627 if (!(this_present_name && that_present_name))
30628 return false;
30629 if (!this.name.equals(that.name))
30630 return false;
30631 }
30632
30633 return true;
30634 }
30635
30636 @Override
30637 public int hashCode() {
30638 List<Object> list = new ArrayList<Object>();
30639
30640 boolean present_projectName = true && (isSetProjectName());
30641 list.add(present_projectName);
30642 if (present_projectName)
30643 list.add(projectName);
30644
30645 boolean present_name = true && (isSetName());
30646 list.add(present_name);
30647 if (present_name)
30648 list.add(name);
30649
30650 return list.hashCode();
30651 }
30652
30653 @Override
30654 public int compareTo(getNamedQuery_args other) {
30655 if (!getClass().equals(other.getClass())) {
30656 return getClass().getName().compareTo(other.getClass().getName());
30657 }
30658
30659 int lastComparison = 0;
30660
30661 lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName());
30662 if (lastComparison != 0) {
30663 return lastComparison;
30664 }
30665 if (isSetProjectName()) {
30666 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName);
30667 if (lastComparison != 0) {
30668 return lastComparison;
30669 }
30670 }
30671 lastComparison = Boolean.valueOf(isSetName()).compareTo(other.isSetName());
30672 if (lastComparison != 0) {
30673 return lastComparison;
30674 }
30675 if (isSetName()) {
30676 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, other.name);
30677 if (lastComparison != 0) {
30678 return lastComparison;
30679 }
30680 }
30681 return 0;
30682 }
30683
30684 public _Fields fieldForId(int fieldId) {
30685 return _Fields.findByThriftId(fieldId);
30686 }
30687
30688 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
30689 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
30690 }
30691
30692 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
30693 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
30694 }
30695
30696 @Override
30697 public String toString() {
30698 StringBuilder sb = new StringBuilder("getNamedQuery_args(");
30699 boolean first = true;
30700
30701 sb.append("projectName:");
30702 if (this.projectName == null) {
30703 sb.append("null");
30704 } else {
30705 sb.append(this.projectName);
30706 }
30707 first = false;
30708 if (!first) sb.append(", ");
30709 sb.append("name:");
30710 if (this.name == null) {
30711 sb.append("null");
30712 } else {
30713 sb.append(this.name);
30714 }
30715 first = false;
30716 sb.append(")");
30717 return sb.toString();
30718 }
30719
30720 public void validate() throws org.apache.thrift.TException {
30721
30722
30723 }
30724
30725 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
30726 try {
30727 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
30728 } catch (org.apache.thrift.TException te) {
30729 throw new java.io.IOException(te);
30730 }
30731 }
30732
30733 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
30734 try {
30735 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
30736 } catch (org.apache.thrift.TException te) {
30737 throw new java.io.IOException(te);
30738 }
30739 }
30740
30741 private static class getNamedQuery_argsStandardSchemeFactory implements SchemeFactory {
30742 public getNamedQuery_argsStandardScheme getScheme() {
30743 return new getNamedQuery_argsStandardScheme();
30744 }
30745 }
30746
30747 private static class getNamedQuery_argsStandardScheme extends StandardScheme<getNamedQuery_args> {
30748
30749 public void read(org.apache.thrift.protocol.TProtocol iprot, getNamedQuery_args struct) throws org.apache.thrift.TException {
30750 org.apache.thrift.protocol.TField schemeField;
30751 iprot.readStructBegin();
30752 while (true)
30753 {
30754 schemeField = iprot.readFieldBegin();
30755 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
30756 break;
30757 }
30758 switch (schemeField.id) {
30759 case 1:
30760 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
30761 struct.projectName = iprot.readString();
30762 struct.setProjectNameIsSet(true);
30763 } else {
30764 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
30765 }
30766 break;
30767 case 2:
30768 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
30769 struct.name = iprot.readString();
30770 struct.setNameIsSet(true);
30771 } else {
30772 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
30773 }
30774 break;
30775 default:
30776 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
30777 }
30778 iprot.readFieldEnd();
30779 }
30780 iprot.readStructEnd();
30781
30782
30783 struct.validate();
30784 }
30785
30786 public void write(org.apache.thrift.protocol.TProtocol oprot, getNamedQuery_args struct) throws org.apache.thrift.TException {
30787 struct.validate();
30788
30789 oprot.writeStructBegin(STRUCT_DESC);
30790 if (struct.projectName != null) {
30791 oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC);
30792 oprot.writeString(struct.projectName);
30793 oprot.writeFieldEnd();
30794 }
30795 if (struct.name != null) {
30796 oprot.writeFieldBegin(NAME_FIELD_DESC);
30797 oprot.writeString(struct.name);
30798 oprot.writeFieldEnd();
30799 }
30800 oprot.writeFieldStop();
30801 oprot.writeStructEnd();
30802 }
30803
30804 }
30805
30806 private static class getNamedQuery_argsTupleSchemeFactory implements SchemeFactory {
30807 public getNamedQuery_argsTupleScheme getScheme() {
30808 return new getNamedQuery_argsTupleScheme();
30809 }
30810 }
30811
30812 private static class getNamedQuery_argsTupleScheme extends TupleScheme<getNamedQuery_args> {
30813
30814 @Override
30815 public void write(org.apache.thrift.protocol.TProtocol prot, getNamedQuery_args struct) throws org.apache.thrift.TException {
30816 TTupleProtocol oprot = (TTupleProtocol) prot;
30817 BitSet optionals = new BitSet();
30818 if (struct.isSetProjectName()) {
30819 optionals.set(0);
30820 }
30821 if (struct.isSetName()) {
30822 optionals.set(1);
30823 }
30824 oprot.writeBitSet(optionals, 2);
30825 if (struct.isSetProjectName()) {
30826 oprot.writeString(struct.projectName);
30827 }
30828 if (struct.isSetName()) {
30829 oprot.writeString(struct.name);
30830 }
30831 }
30832
30833 @Override
30834 public void read(org.apache.thrift.protocol.TProtocol prot, getNamedQuery_args struct) throws org.apache.thrift.TException {
30835 TTupleProtocol iprot = (TTupleProtocol) prot;
30836 BitSet incoming = iprot.readBitSet(2);
30837 if (incoming.get(0)) {
30838 struct.projectName = iprot.readString();
30839 struct.setProjectNameIsSet(true);
30840 }
30841 if (incoming.get(1)) {
30842 struct.name = iprot.readString();
30843 struct.setNameIsSet(true);
30844 }
30845 }
30846 }
30847
30848 }
30849
30850 public static class getNamedQuery_result implements org.apache.thrift.TBase<getNamedQuery_result, getNamedQuery_result._Fields>, java.io.Serializable, Cloneable, Comparable<getNamedQuery_result> {
30851 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getNamedQuery_result");
30852
30853 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
30854 private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
30855
30856 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
30857 static {
30858 schemes.put(StandardScheme.class, new getNamedQuery_resultStandardSchemeFactory());
30859 schemes.put(TupleScheme.class, new getNamedQuery_resultTupleSchemeFactory());
30860 }
30861
30862 public NamedQuery success;
30863 public CentralDogmaException e;
30864
30865
30866 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
30867 SUCCESS((short)0, "success"),
30868 E((short)1, "e");
30869
30870 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
30871
30872 static {
30873 for (_Fields field : EnumSet.allOf(_Fields.class)) {
30874 byName.put(field.getFieldName(), field);
30875 }
30876 }
30877
30878
30879
30880
30881 public static _Fields findByThriftId(int fieldId) {
30882 switch(fieldId) {
30883 case 0:
30884 return SUCCESS;
30885 case 1:
30886 return E;
30887 default:
30888 return null;
30889 }
30890 }
30891
30892
30893
30894
30895
30896 public static _Fields findByThriftIdOrThrow(int fieldId) {
30897 _Fields fields = findByThriftId(fieldId);
30898 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
30899 return fields;
30900 }
30901
30902
30903
30904
30905 public static _Fields findByName(String name) {
30906 return byName.get(name);
30907 }
30908
30909 private final short _thriftId;
30910 private final String _fieldName;
30911
30912 _Fields(short thriftId, String fieldName) {
30913 _thriftId = thriftId;
30914 _fieldName = fieldName;
30915 }
30916
30917 public short getThriftFieldId() {
30918 return _thriftId;
30919 }
30920
30921 public String getFieldName() {
30922 return _fieldName;
30923 }
30924 }
30925
30926
30927 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
30928 static {
30929 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
30930 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
30931 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, NamedQuery.class)));
30932 tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
30933 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
30934 metaDataMap = Collections.unmodifiableMap(tmpMap);
30935 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getNamedQuery_result.class, metaDataMap);
30936 }
30937
30938 public getNamedQuery_result() {
30939 }
30940
30941 public getNamedQuery_result(
30942 NamedQuery success,
30943 CentralDogmaException e)
30944 {
30945 this();
30946 this.success = success;
30947 this.e = e;
30948 }
30949
30950
30951
30952
30953 public getNamedQuery_result(getNamedQuery_result other) {
30954 if (other.isSetSuccess()) {
30955 this.success = new NamedQuery(other.success);
30956 }
30957 if (other.isSetE()) {
30958 this.e = new CentralDogmaException(other.e);
30959 }
30960 }
30961
30962 public getNamedQuery_result deepCopy() {
30963 return new getNamedQuery_result(this);
30964 }
30965
30966 @Override
30967 public void clear() {
30968 this.success = null;
30969 this.e = null;
30970 }
30971
30972 public NamedQuery getSuccess() {
30973 return this.success;
30974 }
30975
30976 public getNamedQuery_result setSuccess(NamedQuery success) {
30977 this.success = success;
30978 return this;
30979 }
30980
30981 public void unsetSuccess() {
30982 this.success = null;
30983 }
30984
30985
30986 public boolean isSetSuccess() {
30987 return this.success != null;
30988 }
30989
30990 public void setSuccessIsSet(boolean value) {
30991 if (!value) {
30992 this.success = null;
30993 }
30994 }
30995
30996 public CentralDogmaException getE() {
30997 return this.e;
30998 }
30999
31000 public getNamedQuery_result setE(CentralDogmaException e) {
31001 this.e = e;
31002 return this;
31003 }
31004
31005 public void unsetE() {
31006 this.e = null;
31007 }
31008
31009
31010 public boolean isSetE() {
31011 return this.e != null;
31012 }
31013
31014 public void setEIsSet(boolean value) {
31015 if (!value) {
31016 this.e = null;
31017 }
31018 }
31019
31020 public void setFieldValue(_Fields field, Object value) {
31021 switch (field) {
31022 case SUCCESS:
31023 if (value == null) {
31024 unsetSuccess();
31025 } else {
31026 setSuccess((NamedQuery)value);
31027 }
31028 break;
31029
31030 case E:
31031 if (value == null) {
31032 unsetE();
31033 } else {
31034 setE((CentralDogmaException)value);
31035 }
31036 break;
31037
31038 }
31039 }
31040
31041 public Object getFieldValue(_Fields field) {
31042 switch (field) {
31043 case SUCCESS:
31044 return getSuccess();
31045
31046 case E:
31047 return getE();
31048
31049 }
31050 throw new IllegalStateException();
31051 }
31052
31053
31054 public boolean isSet(_Fields field) {
31055 if (field == null) {
31056 throw new IllegalArgumentException();
31057 }
31058
31059 switch (field) {
31060 case SUCCESS:
31061 return isSetSuccess();
31062 case E:
31063 return isSetE();
31064 }
31065 throw new IllegalStateException();
31066 }
31067
31068 @Override
31069 public boolean equals(Object that) {
31070 if (that == null)
31071 return false;
31072 if (that instanceof getNamedQuery_result)
31073 return this.equals((getNamedQuery_result)that);
31074 return false;
31075 }
31076
31077 public boolean equals(getNamedQuery_result that) {
31078 if (that == null)
31079 return false;
31080
31081 boolean this_present_success = true && this.isSetSuccess();
31082 boolean that_present_success = true && that.isSetSuccess();
31083 if (this_present_success || that_present_success) {
31084 if (!(this_present_success && that_present_success))
31085 return false;
31086 if (!this.success.equals(that.success))
31087 return false;
31088 }
31089
31090 boolean this_present_e = true && this.isSetE();
31091 boolean that_present_e = true && that.isSetE();
31092 if (this_present_e || that_present_e) {
31093 if (!(this_present_e && that_present_e))
31094 return false;
31095 if (!this.e.equals(that.e))
31096 return false;
31097 }
31098
31099 return true;
31100 }
31101
31102 @Override
31103 public int hashCode() {
31104 List<Object> list = new ArrayList<Object>();
31105
31106 boolean present_success = true && (isSetSuccess());
31107 list.add(present_success);
31108 if (present_success)
31109 list.add(success);
31110
31111 boolean present_e = true && (isSetE());
31112 list.add(present_e);
31113 if (present_e)
31114 list.add(e);
31115
31116 return list.hashCode();
31117 }
31118
31119 @Override
31120 public int compareTo(getNamedQuery_result other) {
31121 if (!getClass().equals(other.getClass())) {
31122 return getClass().getName().compareTo(other.getClass().getName());
31123 }
31124
31125 int lastComparison = 0;
31126
31127 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
31128 if (lastComparison != 0) {
31129 return lastComparison;
31130 }
31131 if (isSetSuccess()) {
31132 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
31133 if (lastComparison != 0) {
31134 return lastComparison;
31135 }
31136 }
31137 lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE());
31138 if (lastComparison != 0) {
31139 return lastComparison;
31140 }
31141 if (isSetE()) {
31142 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e);
31143 if (lastComparison != 0) {
31144 return lastComparison;
31145 }
31146 }
31147 return 0;
31148 }
31149
31150 public _Fields fieldForId(int fieldId) {
31151 return _Fields.findByThriftId(fieldId);
31152 }
31153
31154 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
31155 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
31156 }
31157
31158 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
31159 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
31160 }
31161
31162 @Override
31163 public String toString() {
31164 StringBuilder sb = new StringBuilder("getNamedQuery_result(");
31165 boolean first = true;
31166
31167 sb.append("success:");
31168 if (this.success == null) {
31169 sb.append("null");
31170 } else {
31171 sb.append(this.success);
31172 }
31173 first = false;
31174 if (!first) sb.append(", ");
31175 sb.append("e:");
31176 if (this.e == null) {
31177 sb.append("null");
31178 } else {
31179 sb.append(this.e);
31180 }
31181 first = false;
31182 sb.append(")");
31183 return sb.toString();
31184 }
31185
31186 public void validate() throws org.apache.thrift.TException {
31187
31188
31189 if (success != null) {
31190 success.validate();
31191 }
31192 }
31193
31194 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
31195 try {
31196 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
31197 } catch (org.apache.thrift.TException te) {
31198 throw new java.io.IOException(te);
31199 }
31200 }
31201
31202 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
31203 try {
31204 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
31205 } catch (org.apache.thrift.TException te) {
31206 throw new java.io.IOException(te);
31207 }
31208 }
31209
31210 private static class getNamedQuery_resultStandardSchemeFactory implements SchemeFactory {
31211 public getNamedQuery_resultStandardScheme getScheme() {
31212 return new getNamedQuery_resultStandardScheme();
31213 }
31214 }
31215
31216 private static class getNamedQuery_resultStandardScheme extends StandardScheme<getNamedQuery_result> {
31217
31218 public void read(org.apache.thrift.protocol.TProtocol iprot, getNamedQuery_result struct) throws org.apache.thrift.TException {
31219 org.apache.thrift.protocol.TField schemeField;
31220 iprot.readStructBegin();
31221 while (true)
31222 {
31223 schemeField = iprot.readFieldBegin();
31224 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
31225 break;
31226 }
31227 switch (schemeField.id) {
31228 case 0:
31229 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
31230 struct.success = new NamedQuery();
31231 struct.success.read(iprot);
31232 struct.setSuccessIsSet(true);
31233 } else {
31234 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
31235 }
31236 break;
31237 case 1:
31238 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
31239 struct.e = new CentralDogmaException();
31240 struct.e.read(iprot);
31241 struct.setEIsSet(true);
31242 } else {
31243 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
31244 }
31245 break;
31246 default:
31247 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
31248 }
31249 iprot.readFieldEnd();
31250 }
31251 iprot.readStructEnd();
31252
31253
31254 struct.validate();
31255 }
31256
31257 public void write(org.apache.thrift.protocol.TProtocol oprot, getNamedQuery_result struct) throws org.apache.thrift.TException {
31258 struct.validate();
31259
31260 oprot.writeStructBegin(STRUCT_DESC);
31261 if (struct.success != null) {
31262 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
31263 struct.success.write(oprot);
31264 oprot.writeFieldEnd();
31265 }
31266 if (struct.e != null) {
31267 oprot.writeFieldBegin(E_FIELD_DESC);
31268 struct.e.write(oprot);
31269 oprot.writeFieldEnd();
31270 }
31271 oprot.writeFieldStop();
31272 oprot.writeStructEnd();
31273 }
31274
31275 }
31276
31277 private static class getNamedQuery_resultTupleSchemeFactory implements SchemeFactory {
31278 public getNamedQuery_resultTupleScheme getScheme() {
31279 return new getNamedQuery_resultTupleScheme();
31280 }
31281 }
31282
31283 private static class getNamedQuery_resultTupleScheme extends TupleScheme<getNamedQuery_result> {
31284
31285 @Override
31286 public void write(org.apache.thrift.protocol.TProtocol prot, getNamedQuery_result struct) throws org.apache.thrift.TException {
31287 TTupleProtocol oprot = (TTupleProtocol) prot;
31288 BitSet optionals = new BitSet();
31289 if (struct.isSetSuccess()) {
31290 optionals.set(0);
31291 }
31292 if (struct.isSetE()) {
31293 optionals.set(1);
31294 }
31295 oprot.writeBitSet(optionals, 2);
31296 if (struct.isSetSuccess()) {
31297 struct.success.write(oprot);
31298 }
31299 if (struct.isSetE()) {
31300 struct.e.write(oprot);
31301 }
31302 }
31303
31304 @Override
31305 public void read(org.apache.thrift.protocol.TProtocol prot, getNamedQuery_result struct) throws org.apache.thrift.TException {
31306 TTupleProtocol iprot = (TTupleProtocol) prot;
31307 BitSet incoming = iprot.readBitSet(2);
31308 if (incoming.get(0)) {
31309 struct.success = new NamedQuery();
31310 struct.success.read(iprot);
31311 struct.setSuccessIsSet(true);
31312 }
31313 if (incoming.get(1)) {
31314 struct.e = new CentralDogmaException();
31315 struct.e.read(iprot);
31316 struct.setEIsSet(true);
31317 }
31318 }
31319 }
31320
31321 }
31322
31323 public static class saveNamedQuery_args implements org.apache.thrift.TBase<saveNamedQuery_args, saveNamedQuery_args._Fields>, java.io.Serializable, Cloneable, Comparable<saveNamedQuery_args> {
31324 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveNamedQuery_args");
31325
31326 private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)1);
31327 private static final org.apache.thrift.protocol.TField NAMED_QUERY_FIELD_DESC = new org.apache.thrift.protocol.TField("namedQuery", org.apache.thrift.protocol.TType.STRUCT, (short)2);
31328
31329 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
31330 static {
31331 schemes.put(StandardScheme.class, new saveNamedQuery_argsStandardSchemeFactory());
31332 schemes.put(TupleScheme.class, new saveNamedQuery_argsTupleSchemeFactory());
31333 }
31334
31335 public String projectName;
31336 public NamedQuery namedQuery;
31337
31338
31339 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
31340 PROJECT_NAME((short)1, "projectName"),
31341 NAMED_QUERY((short)2, "namedQuery");
31342
31343 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
31344
31345 static {
31346 for (_Fields field : EnumSet.allOf(_Fields.class)) {
31347 byName.put(field.getFieldName(), field);
31348 }
31349 }
31350
31351
31352
31353
31354 public static _Fields findByThriftId(int fieldId) {
31355 switch(fieldId) {
31356 case 1:
31357 return PROJECT_NAME;
31358 case 2:
31359 return NAMED_QUERY;
31360 default:
31361 return null;
31362 }
31363 }
31364
31365
31366
31367
31368
31369 public static _Fields findByThriftIdOrThrow(int fieldId) {
31370 _Fields fields = findByThriftId(fieldId);
31371 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
31372 return fields;
31373 }
31374
31375
31376
31377
31378 public static _Fields findByName(String name) {
31379 return byName.get(name);
31380 }
31381
31382 private final short _thriftId;
31383 private final String _fieldName;
31384
31385 _Fields(short thriftId, String fieldName) {
31386 _thriftId = thriftId;
31387 _fieldName = fieldName;
31388 }
31389
31390 public short getThriftFieldId() {
31391 return _thriftId;
31392 }
31393
31394 public String getFieldName() {
31395 return _fieldName;
31396 }
31397 }
31398
31399
31400 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
31401 static {
31402 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
31403 tmpMap.put(_Fields.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", org.apache.thrift.TFieldRequirementType.DEFAULT,
31404 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
31405 tmpMap.put(_Fields.NAMED_QUERY, new org.apache.thrift.meta_data.FieldMetaData("namedQuery", org.apache.thrift.TFieldRequirementType.DEFAULT,
31406 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, NamedQuery.class)));
31407 metaDataMap = Collections.unmodifiableMap(tmpMap);
31408 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveNamedQuery_args.class, metaDataMap);
31409 }
31410
31411 public saveNamedQuery_args() {
31412 }
31413
31414 public saveNamedQuery_args(
31415 String projectName,
31416 NamedQuery namedQuery)
31417 {
31418 this();
31419 this.projectName = projectName;
31420 this.namedQuery = namedQuery;
31421 }
31422
31423
31424
31425
31426 public saveNamedQuery_args(saveNamedQuery_args other) {
31427 if (other.isSetProjectName()) {
31428 this.projectName = other.projectName;
31429 }
31430 if (other.isSetNamedQuery()) {
31431 this.namedQuery = new NamedQuery(other.namedQuery);
31432 }
31433 }
31434
31435 public saveNamedQuery_args deepCopy() {
31436 return new saveNamedQuery_args(this);
31437 }
31438
31439 @Override
31440 public void clear() {
31441 this.projectName = null;
31442 this.namedQuery = null;
31443 }
31444
31445 public String getProjectName() {
31446 return this.projectName;
31447 }
31448
31449 public saveNamedQuery_args setProjectName(String projectName) {
31450 this.projectName = projectName;
31451 return this;
31452 }
31453
31454 public void unsetProjectName() {
31455 this.projectName = null;
31456 }
31457
31458
31459 public boolean isSetProjectName() {
31460 return this.projectName != null;
31461 }
31462
31463 public void setProjectNameIsSet(boolean value) {
31464 if (!value) {
31465 this.projectName = null;
31466 }
31467 }
31468
31469 public NamedQuery getNamedQuery() {
31470 return this.namedQuery;
31471 }
31472
31473 public saveNamedQuery_args setNamedQuery(NamedQuery namedQuery) {
31474 this.namedQuery = namedQuery;
31475 return this;
31476 }
31477
31478 public void unsetNamedQuery() {
31479 this.namedQuery = null;
31480 }
31481
31482
31483 public boolean isSetNamedQuery() {
31484 return this.namedQuery != null;
31485 }
31486
31487 public void setNamedQueryIsSet(boolean value) {
31488 if (!value) {
31489 this.namedQuery = null;
31490 }
31491 }
31492
31493 public void setFieldValue(_Fields field, Object value) {
31494 switch (field) {
31495 case PROJECT_NAME:
31496 if (value == null) {
31497 unsetProjectName();
31498 } else {
31499 setProjectName((String)value);
31500 }
31501 break;
31502
31503 case NAMED_QUERY:
31504 if (value == null) {
31505 unsetNamedQuery();
31506 } else {
31507 setNamedQuery((NamedQuery)value);
31508 }
31509 break;
31510
31511 }
31512 }
31513
31514 public Object getFieldValue(_Fields field) {
31515 switch (field) {
31516 case PROJECT_NAME:
31517 return getProjectName();
31518
31519 case NAMED_QUERY:
31520 return getNamedQuery();
31521
31522 }
31523 throw new IllegalStateException();
31524 }
31525
31526
31527 public boolean isSet(_Fields field) {
31528 if (field == null) {
31529 throw new IllegalArgumentException();
31530 }
31531
31532 switch (field) {
31533 case PROJECT_NAME:
31534 return isSetProjectName();
31535 case NAMED_QUERY:
31536 return isSetNamedQuery();
31537 }
31538 throw new IllegalStateException();
31539 }
31540
31541 @Override
31542 public boolean equals(Object that) {
31543 if (that == null)
31544 return false;
31545 if (that instanceof saveNamedQuery_args)
31546 return this.equals((saveNamedQuery_args)that);
31547 return false;
31548 }
31549
31550 public boolean equals(saveNamedQuery_args that) {
31551 if (that == null)
31552 return false;
31553
31554 boolean this_present_projectName = true && this.isSetProjectName();
31555 boolean that_present_projectName = true && that.isSetProjectName();
31556 if (this_present_projectName || that_present_projectName) {
31557 if (!(this_present_projectName && that_present_projectName))
31558 return false;
31559 if (!this.projectName.equals(that.projectName))
31560 return false;
31561 }
31562
31563 boolean this_present_namedQuery = true && this.isSetNamedQuery();
31564 boolean that_present_namedQuery = true && that.isSetNamedQuery();
31565 if (this_present_namedQuery || that_present_namedQuery) {
31566 if (!(this_present_namedQuery && that_present_namedQuery))
31567 return false;
31568 if (!this.namedQuery.equals(that.namedQuery))
31569 return false;
31570 }
31571
31572 return true;
31573 }
31574
31575 @Override
31576 public int hashCode() {
31577 List<Object> list = new ArrayList<Object>();
31578
31579 boolean present_projectName = true && (isSetProjectName());
31580 list.add(present_projectName);
31581 if (present_projectName)
31582 list.add(projectName);
31583
31584 boolean present_namedQuery = true && (isSetNamedQuery());
31585 list.add(present_namedQuery);
31586 if (present_namedQuery)
31587 list.add(namedQuery);
31588
31589 return list.hashCode();
31590 }
31591
31592 @Override
31593 public int compareTo(saveNamedQuery_args other) {
31594 if (!getClass().equals(other.getClass())) {
31595 return getClass().getName().compareTo(other.getClass().getName());
31596 }
31597
31598 int lastComparison = 0;
31599
31600 lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName());
31601 if (lastComparison != 0) {
31602 return lastComparison;
31603 }
31604 if (isSetProjectName()) {
31605 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName);
31606 if (lastComparison != 0) {
31607 return lastComparison;
31608 }
31609 }
31610 lastComparison = Boolean.valueOf(isSetNamedQuery()).compareTo(other.isSetNamedQuery());
31611 if (lastComparison != 0) {
31612 return lastComparison;
31613 }
31614 if (isSetNamedQuery()) {
31615 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.namedQuery, other.namedQuery);
31616 if (lastComparison != 0) {
31617 return lastComparison;
31618 }
31619 }
31620 return 0;
31621 }
31622
31623 public _Fields fieldForId(int fieldId) {
31624 return _Fields.findByThriftId(fieldId);
31625 }
31626
31627 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
31628 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
31629 }
31630
31631 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
31632 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
31633 }
31634
31635 @Override
31636 public String toString() {
31637 StringBuilder sb = new StringBuilder("saveNamedQuery_args(");
31638 boolean first = true;
31639
31640 sb.append("projectName:");
31641 if (this.projectName == null) {
31642 sb.append("null");
31643 } else {
31644 sb.append(this.projectName);
31645 }
31646 first = false;
31647 if (!first) sb.append(", ");
31648 sb.append("namedQuery:");
31649 if (this.namedQuery == null) {
31650 sb.append("null");
31651 } else {
31652 sb.append(this.namedQuery);
31653 }
31654 first = false;
31655 sb.append(")");
31656 return sb.toString();
31657 }
31658
31659 public void validate() throws org.apache.thrift.TException {
31660
31661
31662 if (namedQuery != null) {
31663 namedQuery.validate();
31664 }
31665 }
31666
31667 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
31668 try {
31669 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
31670 } catch (org.apache.thrift.TException te) {
31671 throw new java.io.IOException(te);
31672 }
31673 }
31674
31675 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
31676 try {
31677 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
31678 } catch (org.apache.thrift.TException te) {
31679 throw new java.io.IOException(te);
31680 }
31681 }
31682
31683 private static class saveNamedQuery_argsStandardSchemeFactory implements SchemeFactory {
31684 public saveNamedQuery_argsStandardScheme getScheme() {
31685 return new saveNamedQuery_argsStandardScheme();
31686 }
31687 }
31688
31689 private static class saveNamedQuery_argsStandardScheme extends StandardScheme<saveNamedQuery_args> {
31690
31691 public void read(org.apache.thrift.protocol.TProtocol iprot, saveNamedQuery_args struct) throws org.apache.thrift.TException {
31692 org.apache.thrift.protocol.TField schemeField;
31693 iprot.readStructBegin();
31694 while (true)
31695 {
31696 schemeField = iprot.readFieldBegin();
31697 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
31698 break;
31699 }
31700 switch (schemeField.id) {
31701 case 1:
31702 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
31703 struct.projectName = iprot.readString();
31704 struct.setProjectNameIsSet(true);
31705 } else {
31706 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
31707 }
31708 break;
31709 case 2:
31710 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
31711 struct.namedQuery = new NamedQuery();
31712 struct.namedQuery.read(iprot);
31713 struct.setNamedQueryIsSet(true);
31714 } else {
31715 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
31716 }
31717 break;
31718 default:
31719 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
31720 }
31721 iprot.readFieldEnd();
31722 }
31723 iprot.readStructEnd();
31724
31725
31726 struct.validate();
31727 }
31728
31729 public void write(org.apache.thrift.protocol.TProtocol oprot, saveNamedQuery_args struct) throws org.apache.thrift.TException {
31730 struct.validate();
31731
31732 oprot.writeStructBegin(STRUCT_DESC);
31733 if (struct.projectName != null) {
31734 oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC);
31735 oprot.writeString(struct.projectName);
31736 oprot.writeFieldEnd();
31737 }
31738 if (struct.namedQuery != null) {
31739 oprot.writeFieldBegin(NAMED_QUERY_FIELD_DESC);
31740 struct.namedQuery.write(oprot);
31741 oprot.writeFieldEnd();
31742 }
31743 oprot.writeFieldStop();
31744 oprot.writeStructEnd();
31745 }
31746
31747 }
31748
31749 private static class saveNamedQuery_argsTupleSchemeFactory implements SchemeFactory {
31750 public saveNamedQuery_argsTupleScheme getScheme() {
31751 return new saveNamedQuery_argsTupleScheme();
31752 }
31753 }
31754
31755 private static class saveNamedQuery_argsTupleScheme extends TupleScheme<saveNamedQuery_args> {
31756
31757 @Override
31758 public void write(org.apache.thrift.protocol.TProtocol prot, saveNamedQuery_args struct) throws org.apache.thrift.TException {
31759 TTupleProtocol oprot = (TTupleProtocol) prot;
31760 BitSet optionals = new BitSet();
31761 if (struct.isSetProjectName()) {
31762 optionals.set(0);
31763 }
31764 if (struct.isSetNamedQuery()) {
31765 optionals.set(1);
31766 }
31767 oprot.writeBitSet(optionals, 2);
31768 if (struct.isSetProjectName()) {
31769 oprot.writeString(struct.projectName);
31770 }
31771 if (struct.isSetNamedQuery()) {
31772 struct.namedQuery.write(oprot);
31773 }
31774 }
31775
31776 @Override
31777 public void read(org.apache.thrift.protocol.TProtocol prot, saveNamedQuery_args struct) throws org.apache.thrift.TException {
31778 TTupleProtocol iprot = (TTupleProtocol) prot;
31779 BitSet incoming = iprot.readBitSet(2);
31780 if (incoming.get(0)) {
31781 struct.projectName = iprot.readString();
31782 struct.setProjectNameIsSet(true);
31783 }
31784 if (incoming.get(1)) {
31785 struct.namedQuery = new NamedQuery();
31786 struct.namedQuery.read(iprot);
31787 struct.setNamedQueryIsSet(true);
31788 }
31789 }
31790 }
31791
31792 }
31793
31794 public static class saveNamedQuery_result implements org.apache.thrift.TBase<saveNamedQuery_result, saveNamedQuery_result._Fields>, java.io.Serializable, Cloneable, Comparable<saveNamedQuery_result> {
31795 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveNamedQuery_result");
31796
31797 private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
31798
31799 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
31800 static {
31801 schemes.put(StandardScheme.class, new saveNamedQuery_resultStandardSchemeFactory());
31802 schemes.put(TupleScheme.class, new saveNamedQuery_resultTupleSchemeFactory());
31803 }
31804
31805 public CentralDogmaException e;
31806
31807
31808 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
31809 E((short)1, "e");
31810
31811 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
31812
31813 static {
31814 for (_Fields field : EnumSet.allOf(_Fields.class)) {
31815 byName.put(field.getFieldName(), field);
31816 }
31817 }
31818
31819
31820
31821
31822 public static _Fields findByThriftId(int fieldId) {
31823 switch(fieldId) {
31824 case 1:
31825 return E;
31826 default:
31827 return null;
31828 }
31829 }
31830
31831
31832
31833
31834
31835 public static _Fields findByThriftIdOrThrow(int fieldId) {
31836 _Fields fields = findByThriftId(fieldId);
31837 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
31838 return fields;
31839 }
31840
31841
31842
31843
31844 public static _Fields findByName(String name) {
31845 return byName.get(name);
31846 }
31847
31848 private final short _thriftId;
31849 private final String _fieldName;
31850
31851 _Fields(short thriftId, String fieldName) {
31852 _thriftId = thriftId;
31853 _fieldName = fieldName;
31854 }
31855
31856 public short getThriftFieldId() {
31857 return _thriftId;
31858 }
31859
31860 public String getFieldName() {
31861 return _fieldName;
31862 }
31863 }
31864
31865
31866 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
31867 static {
31868 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
31869 tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
31870 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
31871 metaDataMap = Collections.unmodifiableMap(tmpMap);
31872 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveNamedQuery_result.class, metaDataMap);
31873 }
31874
31875 public saveNamedQuery_result() {
31876 }
31877
31878 public saveNamedQuery_result(
31879 CentralDogmaException e)
31880 {
31881 this();
31882 this.e = e;
31883 }
31884
31885
31886
31887
31888 public saveNamedQuery_result(saveNamedQuery_result other) {
31889 if (other.isSetE()) {
31890 this.e = new CentralDogmaException(other.e);
31891 }
31892 }
31893
31894 public saveNamedQuery_result deepCopy() {
31895 return new saveNamedQuery_result(this);
31896 }
31897
31898 @Override
31899 public void clear() {
31900 this.e = null;
31901 }
31902
31903 public CentralDogmaException getE() {
31904 return this.e;
31905 }
31906
31907 public saveNamedQuery_result setE(CentralDogmaException e) {
31908 this.e = e;
31909 return this;
31910 }
31911
31912 public void unsetE() {
31913 this.e = null;
31914 }
31915
31916
31917 public boolean isSetE() {
31918 return this.e != null;
31919 }
31920
31921 public void setEIsSet(boolean value) {
31922 if (!value) {
31923 this.e = null;
31924 }
31925 }
31926
31927 public void setFieldValue(_Fields field, Object value) {
31928 switch (field) {
31929 case E:
31930 if (value == null) {
31931 unsetE();
31932 } else {
31933 setE((CentralDogmaException)value);
31934 }
31935 break;
31936
31937 }
31938 }
31939
31940 public Object getFieldValue(_Fields field) {
31941 switch (field) {
31942 case E:
31943 return getE();
31944
31945 }
31946 throw new IllegalStateException();
31947 }
31948
31949
31950 public boolean isSet(_Fields field) {
31951 if (field == null) {
31952 throw new IllegalArgumentException();
31953 }
31954
31955 switch (field) {
31956 case E:
31957 return isSetE();
31958 }
31959 throw new IllegalStateException();
31960 }
31961
31962 @Override
31963 public boolean equals(Object that) {
31964 if (that == null)
31965 return false;
31966 if (that instanceof saveNamedQuery_result)
31967 return this.equals((saveNamedQuery_result)that);
31968 return false;
31969 }
31970
31971 public boolean equals(saveNamedQuery_result that) {
31972 if (that == null)
31973 return false;
31974
31975 boolean this_present_e = true && this.isSetE();
31976 boolean that_present_e = true && that.isSetE();
31977 if (this_present_e || that_present_e) {
31978 if (!(this_present_e && that_present_e))
31979 return false;
31980 if (!this.e.equals(that.e))
31981 return false;
31982 }
31983
31984 return true;
31985 }
31986
31987 @Override
31988 public int hashCode() {
31989 List<Object> list = new ArrayList<Object>();
31990
31991 boolean present_e = true && (isSetE());
31992 list.add(present_e);
31993 if (present_e)
31994 list.add(e);
31995
31996 return list.hashCode();
31997 }
31998
31999 @Override
32000 public int compareTo(saveNamedQuery_result other) {
32001 if (!getClass().equals(other.getClass())) {
32002 return getClass().getName().compareTo(other.getClass().getName());
32003 }
32004
32005 int lastComparison = 0;
32006
32007 lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE());
32008 if (lastComparison != 0) {
32009 return lastComparison;
32010 }
32011 if (isSetE()) {
32012 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e);
32013 if (lastComparison != 0) {
32014 return lastComparison;
32015 }
32016 }
32017 return 0;
32018 }
32019
32020 public _Fields fieldForId(int fieldId) {
32021 return _Fields.findByThriftId(fieldId);
32022 }
32023
32024 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
32025 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
32026 }
32027
32028 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
32029 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
32030 }
32031
32032 @Override
32033 public String toString() {
32034 StringBuilder sb = new StringBuilder("saveNamedQuery_result(");
32035 boolean first = true;
32036
32037 sb.append("e:");
32038 if (this.e == null) {
32039 sb.append("null");
32040 } else {
32041 sb.append(this.e);
32042 }
32043 first = false;
32044 sb.append(")");
32045 return sb.toString();
32046 }
32047
32048 public void validate() throws org.apache.thrift.TException {
32049
32050
32051 }
32052
32053 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
32054 try {
32055 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
32056 } catch (org.apache.thrift.TException te) {
32057 throw new java.io.IOException(te);
32058 }
32059 }
32060
32061 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
32062 try {
32063 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
32064 } catch (org.apache.thrift.TException te) {
32065 throw new java.io.IOException(te);
32066 }
32067 }
32068
32069 private static class saveNamedQuery_resultStandardSchemeFactory implements SchemeFactory {
32070 public saveNamedQuery_resultStandardScheme getScheme() {
32071 return new saveNamedQuery_resultStandardScheme();
32072 }
32073 }
32074
32075 private static class saveNamedQuery_resultStandardScheme extends StandardScheme<saveNamedQuery_result> {
32076
32077 public void read(org.apache.thrift.protocol.TProtocol iprot, saveNamedQuery_result struct) throws org.apache.thrift.TException {
32078 org.apache.thrift.protocol.TField schemeField;
32079 iprot.readStructBegin();
32080 while (true)
32081 {
32082 schemeField = iprot.readFieldBegin();
32083 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
32084 break;
32085 }
32086 switch (schemeField.id) {
32087 case 1:
32088 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
32089 struct.e = new CentralDogmaException();
32090 struct.e.read(iprot);
32091 struct.setEIsSet(true);
32092 } else {
32093 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
32094 }
32095 break;
32096 default:
32097 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
32098 }
32099 iprot.readFieldEnd();
32100 }
32101 iprot.readStructEnd();
32102
32103
32104 struct.validate();
32105 }
32106
32107 public void write(org.apache.thrift.protocol.TProtocol oprot, saveNamedQuery_result struct) throws org.apache.thrift.TException {
32108 struct.validate();
32109
32110 oprot.writeStructBegin(STRUCT_DESC);
32111 if (struct.e != null) {
32112 oprot.writeFieldBegin(E_FIELD_DESC);
32113 struct.e.write(oprot);
32114 oprot.writeFieldEnd();
32115 }
32116 oprot.writeFieldStop();
32117 oprot.writeStructEnd();
32118 }
32119
32120 }
32121
32122 private static class saveNamedQuery_resultTupleSchemeFactory implements SchemeFactory {
32123 public saveNamedQuery_resultTupleScheme getScheme() {
32124 return new saveNamedQuery_resultTupleScheme();
32125 }
32126 }
32127
32128 private static class saveNamedQuery_resultTupleScheme extends TupleScheme<saveNamedQuery_result> {
32129
32130 @Override
32131 public void write(org.apache.thrift.protocol.TProtocol prot, saveNamedQuery_result struct) throws org.apache.thrift.TException {
32132 TTupleProtocol oprot = (TTupleProtocol) prot;
32133 BitSet optionals = new BitSet();
32134 if (struct.isSetE()) {
32135 optionals.set(0);
32136 }
32137 oprot.writeBitSet(optionals, 1);
32138 if (struct.isSetE()) {
32139 struct.e.write(oprot);
32140 }
32141 }
32142
32143 @Override
32144 public void read(org.apache.thrift.protocol.TProtocol prot, saveNamedQuery_result struct) throws org.apache.thrift.TException {
32145 TTupleProtocol iprot = (TTupleProtocol) prot;
32146 BitSet incoming = iprot.readBitSet(1);
32147 if (incoming.get(0)) {
32148 struct.e = new CentralDogmaException();
32149 struct.e.read(iprot);
32150 struct.setEIsSet(true);
32151 }
32152 }
32153 }
32154
32155 }
32156
32157 public static class removeNamedQuery_args implements org.apache.thrift.TBase<removeNamedQuery_args, removeNamedQuery_args._Fields>, java.io.Serializable, Cloneable, Comparable<removeNamedQuery_args> {
32158 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("removeNamedQuery_args");
32159
32160 private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)1);
32161 private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)2);
32162
32163 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
32164 static {
32165 schemes.put(StandardScheme.class, new removeNamedQuery_argsStandardSchemeFactory());
32166 schemes.put(TupleScheme.class, new removeNamedQuery_argsTupleSchemeFactory());
32167 }
32168
32169 public String projectName;
32170 public String name;
32171
32172
32173 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
32174 PROJECT_NAME((short)1, "projectName"),
32175 NAME((short)2, "name");
32176
32177 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
32178
32179 static {
32180 for (_Fields field : EnumSet.allOf(_Fields.class)) {
32181 byName.put(field.getFieldName(), field);
32182 }
32183 }
32184
32185
32186
32187
32188 public static _Fields findByThriftId(int fieldId) {
32189 switch(fieldId) {
32190 case 1:
32191 return PROJECT_NAME;
32192 case 2:
32193 return NAME;
32194 default:
32195 return null;
32196 }
32197 }
32198
32199
32200
32201
32202
32203 public static _Fields findByThriftIdOrThrow(int fieldId) {
32204 _Fields fields = findByThriftId(fieldId);
32205 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
32206 return fields;
32207 }
32208
32209
32210
32211
32212 public static _Fields findByName(String name) {
32213 return byName.get(name);
32214 }
32215
32216 private final short _thriftId;
32217 private final String _fieldName;
32218
32219 _Fields(short thriftId, String fieldName) {
32220 _thriftId = thriftId;
32221 _fieldName = fieldName;
32222 }
32223
32224 public short getThriftFieldId() {
32225 return _thriftId;
32226 }
32227
32228 public String getFieldName() {
32229 return _fieldName;
32230 }
32231 }
32232
32233
32234 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
32235 static {
32236 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
32237 tmpMap.put(_Fields.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", org.apache.thrift.TFieldRequirementType.DEFAULT,
32238 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
32239 tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT,
32240 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
32241 metaDataMap = Collections.unmodifiableMap(tmpMap);
32242 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(removeNamedQuery_args.class, metaDataMap);
32243 }
32244
32245 public removeNamedQuery_args() {
32246 }
32247
32248 public removeNamedQuery_args(
32249 String projectName,
32250 String name)
32251 {
32252 this();
32253 this.projectName = projectName;
32254 this.name = name;
32255 }
32256
32257
32258
32259
32260 public removeNamedQuery_args(removeNamedQuery_args other) {
32261 if (other.isSetProjectName()) {
32262 this.projectName = other.projectName;
32263 }
32264 if (other.isSetName()) {
32265 this.name = other.name;
32266 }
32267 }
32268
32269 public removeNamedQuery_args deepCopy() {
32270 return new removeNamedQuery_args(this);
32271 }
32272
32273 @Override
32274 public void clear() {
32275 this.projectName = null;
32276 this.name = null;
32277 }
32278
32279 public String getProjectName() {
32280 return this.projectName;
32281 }
32282
32283 public removeNamedQuery_args setProjectName(String projectName) {
32284 this.projectName = projectName;
32285 return this;
32286 }
32287
32288 public void unsetProjectName() {
32289 this.projectName = null;
32290 }
32291
32292
32293 public boolean isSetProjectName() {
32294 return this.projectName != null;
32295 }
32296
32297 public void setProjectNameIsSet(boolean value) {
32298 if (!value) {
32299 this.projectName = null;
32300 }
32301 }
32302
32303 public String getName() {
32304 return this.name;
32305 }
32306
32307 public removeNamedQuery_args setName(String name) {
32308 this.name = name;
32309 return this;
32310 }
32311
32312 public void unsetName() {
32313 this.name = null;
32314 }
32315
32316
32317 public boolean isSetName() {
32318 return this.name != null;
32319 }
32320
32321 public void setNameIsSet(boolean value) {
32322 if (!value) {
32323 this.name = null;
32324 }
32325 }
32326
32327 public void setFieldValue(_Fields field, Object value) {
32328 switch (field) {
32329 case PROJECT_NAME:
32330 if (value == null) {
32331 unsetProjectName();
32332 } else {
32333 setProjectName((String)value);
32334 }
32335 break;
32336
32337 case NAME:
32338 if (value == null) {
32339 unsetName();
32340 } else {
32341 setName((String)value);
32342 }
32343 break;
32344
32345 }
32346 }
32347
32348 public Object getFieldValue(_Fields field) {
32349 switch (field) {
32350 case PROJECT_NAME:
32351 return getProjectName();
32352
32353 case NAME:
32354 return getName();
32355
32356 }
32357 throw new IllegalStateException();
32358 }
32359
32360
32361 public boolean isSet(_Fields field) {
32362 if (field == null) {
32363 throw new IllegalArgumentException();
32364 }
32365
32366 switch (field) {
32367 case PROJECT_NAME:
32368 return isSetProjectName();
32369 case NAME:
32370 return isSetName();
32371 }
32372 throw new IllegalStateException();
32373 }
32374
32375 @Override
32376 public boolean equals(Object that) {
32377 if (that == null)
32378 return false;
32379 if (that instanceof removeNamedQuery_args)
32380 return this.equals((removeNamedQuery_args)that);
32381 return false;
32382 }
32383
32384 public boolean equals(removeNamedQuery_args that) {
32385 if (that == null)
32386 return false;
32387
32388 boolean this_present_projectName = true && this.isSetProjectName();
32389 boolean that_present_projectName = true && that.isSetProjectName();
32390 if (this_present_projectName || that_present_projectName) {
32391 if (!(this_present_projectName && that_present_projectName))
32392 return false;
32393 if (!this.projectName.equals(that.projectName))
32394 return false;
32395 }
32396
32397 boolean this_present_name = true && this.isSetName();
32398 boolean that_present_name = true && that.isSetName();
32399 if (this_present_name || that_present_name) {
32400 if (!(this_present_name && that_present_name))
32401 return false;
32402 if (!this.name.equals(that.name))
32403 return false;
32404 }
32405
32406 return true;
32407 }
32408
32409 @Override
32410 public int hashCode() {
32411 List<Object> list = new ArrayList<Object>();
32412
32413 boolean present_projectName = true && (isSetProjectName());
32414 list.add(present_projectName);
32415 if (present_projectName)
32416 list.add(projectName);
32417
32418 boolean present_name = true && (isSetName());
32419 list.add(present_name);
32420 if (present_name)
32421 list.add(name);
32422
32423 return list.hashCode();
32424 }
32425
32426 @Override
32427 public int compareTo(removeNamedQuery_args other) {
32428 if (!getClass().equals(other.getClass())) {
32429 return getClass().getName().compareTo(other.getClass().getName());
32430 }
32431
32432 int lastComparison = 0;
32433
32434 lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName());
32435 if (lastComparison != 0) {
32436 return lastComparison;
32437 }
32438 if (isSetProjectName()) {
32439 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName);
32440 if (lastComparison != 0) {
32441 return lastComparison;
32442 }
32443 }
32444 lastComparison = Boolean.valueOf(isSetName()).compareTo(other.isSetName());
32445 if (lastComparison != 0) {
32446 return lastComparison;
32447 }
32448 if (isSetName()) {
32449 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, other.name);
32450 if (lastComparison != 0) {
32451 return lastComparison;
32452 }
32453 }
32454 return 0;
32455 }
32456
32457 public _Fields fieldForId(int fieldId) {
32458 return _Fields.findByThriftId(fieldId);
32459 }
32460
32461 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
32462 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
32463 }
32464
32465 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
32466 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
32467 }
32468
32469 @Override
32470 public String toString() {
32471 StringBuilder sb = new StringBuilder("removeNamedQuery_args(");
32472 boolean first = true;
32473
32474 sb.append("projectName:");
32475 if (this.projectName == null) {
32476 sb.append("null");
32477 } else {
32478 sb.append(this.projectName);
32479 }
32480 first = false;
32481 if (!first) sb.append(", ");
32482 sb.append("name:");
32483 if (this.name == null) {
32484 sb.append("null");
32485 } else {
32486 sb.append(this.name);
32487 }
32488 first = false;
32489 sb.append(")");
32490 return sb.toString();
32491 }
32492
32493 public void validate() throws org.apache.thrift.TException {
32494
32495
32496 }
32497
32498 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
32499 try {
32500 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
32501 } catch (org.apache.thrift.TException te) {
32502 throw new java.io.IOException(te);
32503 }
32504 }
32505
32506 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
32507 try {
32508 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
32509 } catch (org.apache.thrift.TException te) {
32510 throw new java.io.IOException(te);
32511 }
32512 }
32513
32514 private static class removeNamedQuery_argsStandardSchemeFactory implements SchemeFactory {
32515 public removeNamedQuery_argsStandardScheme getScheme() {
32516 return new removeNamedQuery_argsStandardScheme();
32517 }
32518 }
32519
32520 private static class removeNamedQuery_argsStandardScheme extends StandardScheme<removeNamedQuery_args> {
32521
32522 public void read(org.apache.thrift.protocol.TProtocol iprot, removeNamedQuery_args struct) throws org.apache.thrift.TException {
32523 org.apache.thrift.protocol.TField schemeField;
32524 iprot.readStructBegin();
32525 while (true)
32526 {
32527 schemeField = iprot.readFieldBegin();
32528 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
32529 break;
32530 }
32531 switch (schemeField.id) {
32532 case 1:
32533 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
32534 struct.projectName = iprot.readString();
32535 struct.setProjectNameIsSet(true);
32536 } else {
32537 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
32538 }
32539 break;
32540 case 2:
32541 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
32542 struct.name = iprot.readString();
32543 struct.setNameIsSet(true);
32544 } else {
32545 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
32546 }
32547 break;
32548 default:
32549 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
32550 }
32551 iprot.readFieldEnd();
32552 }
32553 iprot.readStructEnd();
32554
32555
32556 struct.validate();
32557 }
32558
32559 public void write(org.apache.thrift.protocol.TProtocol oprot, removeNamedQuery_args struct) throws org.apache.thrift.TException {
32560 struct.validate();
32561
32562 oprot.writeStructBegin(STRUCT_DESC);
32563 if (struct.projectName != null) {
32564 oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC);
32565 oprot.writeString(struct.projectName);
32566 oprot.writeFieldEnd();
32567 }
32568 if (struct.name != null) {
32569 oprot.writeFieldBegin(NAME_FIELD_DESC);
32570 oprot.writeString(struct.name);
32571 oprot.writeFieldEnd();
32572 }
32573 oprot.writeFieldStop();
32574 oprot.writeStructEnd();
32575 }
32576
32577 }
32578
32579 private static class removeNamedQuery_argsTupleSchemeFactory implements SchemeFactory {
32580 public removeNamedQuery_argsTupleScheme getScheme() {
32581 return new removeNamedQuery_argsTupleScheme();
32582 }
32583 }
32584
32585 private static class removeNamedQuery_argsTupleScheme extends TupleScheme<removeNamedQuery_args> {
32586
32587 @Override
32588 public void write(org.apache.thrift.protocol.TProtocol prot, removeNamedQuery_args struct) throws org.apache.thrift.TException {
32589 TTupleProtocol oprot = (TTupleProtocol) prot;
32590 BitSet optionals = new BitSet();
32591 if (struct.isSetProjectName()) {
32592 optionals.set(0);
32593 }
32594 if (struct.isSetName()) {
32595 optionals.set(1);
32596 }
32597 oprot.writeBitSet(optionals, 2);
32598 if (struct.isSetProjectName()) {
32599 oprot.writeString(struct.projectName);
32600 }
32601 if (struct.isSetName()) {
32602 oprot.writeString(struct.name);
32603 }
32604 }
32605
32606 @Override
32607 public void read(org.apache.thrift.protocol.TProtocol prot, removeNamedQuery_args struct) throws org.apache.thrift.TException {
32608 TTupleProtocol iprot = (TTupleProtocol) prot;
32609 BitSet incoming = iprot.readBitSet(2);
32610 if (incoming.get(0)) {
32611 struct.projectName = iprot.readString();
32612 struct.setProjectNameIsSet(true);
32613 }
32614 if (incoming.get(1)) {
32615 struct.name = iprot.readString();
32616 struct.setNameIsSet(true);
32617 }
32618 }
32619 }
32620
32621 }
32622
32623 public static class removeNamedQuery_result implements org.apache.thrift.TBase<removeNamedQuery_result, removeNamedQuery_result._Fields>, java.io.Serializable, Cloneable, Comparable<removeNamedQuery_result> {
32624 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("removeNamedQuery_result");
32625
32626 private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
32627
32628 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
32629 static {
32630 schemes.put(StandardScheme.class, new removeNamedQuery_resultStandardSchemeFactory());
32631 schemes.put(TupleScheme.class, new removeNamedQuery_resultTupleSchemeFactory());
32632 }
32633
32634 public CentralDogmaException e;
32635
32636
32637 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
32638 E((short)1, "e");
32639
32640 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
32641
32642 static {
32643 for (_Fields field : EnumSet.allOf(_Fields.class)) {
32644 byName.put(field.getFieldName(), field);
32645 }
32646 }
32647
32648
32649
32650
32651 public static _Fields findByThriftId(int fieldId) {
32652 switch(fieldId) {
32653 case 1:
32654 return E;
32655 default:
32656 return null;
32657 }
32658 }
32659
32660
32661
32662
32663
32664 public static _Fields findByThriftIdOrThrow(int fieldId) {
32665 _Fields fields = findByThriftId(fieldId);
32666 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
32667 return fields;
32668 }
32669
32670
32671
32672
32673 public static _Fields findByName(String name) {
32674 return byName.get(name);
32675 }
32676
32677 private final short _thriftId;
32678 private final String _fieldName;
32679
32680 _Fields(short thriftId, String fieldName) {
32681 _thriftId = thriftId;
32682 _fieldName = fieldName;
32683 }
32684
32685 public short getThriftFieldId() {
32686 return _thriftId;
32687 }
32688
32689 public String getFieldName() {
32690 return _fieldName;
32691 }
32692 }
32693
32694
32695 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
32696 static {
32697 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
32698 tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
32699 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
32700 metaDataMap = Collections.unmodifiableMap(tmpMap);
32701 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(removeNamedQuery_result.class, metaDataMap);
32702 }
32703
32704 public removeNamedQuery_result() {
32705 }
32706
32707 public removeNamedQuery_result(
32708 CentralDogmaException e)
32709 {
32710 this();
32711 this.e = e;
32712 }
32713
32714
32715
32716
32717 public removeNamedQuery_result(removeNamedQuery_result other) {
32718 if (other.isSetE()) {
32719 this.e = new CentralDogmaException(other.e);
32720 }
32721 }
32722
32723 public removeNamedQuery_result deepCopy() {
32724 return new removeNamedQuery_result(this);
32725 }
32726
32727 @Override
32728 public void clear() {
32729 this.e = null;
32730 }
32731
32732 public CentralDogmaException getE() {
32733 return this.e;
32734 }
32735
32736 public removeNamedQuery_result setE(CentralDogmaException e) {
32737 this.e = e;
32738 return this;
32739 }
32740
32741 public void unsetE() {
32742 this.e = null;
32743 }
32744
32745
32746 public boolean isSetE() {
32747 return this.e != null;
32748 }
32749
32750 public void setEIsSet(boolean value) {
32751 if (!value) {
32752 this.e = null;
32753 }
32754 }
32755
32756 public void setFieldValue(_Fields field, Object value) {
32757 switch (field) {
32758 case E:
32759 if (value == null) {
32760 unsetE();
32761 } else {
32762 setE((CentralDogmaException)value);
32763 }
32764 break;
32765
32766 }
32767 }
32768
32769 public Object getFieldValue(_Fields field) {
32770 switch (field) {
32771 case E:
32772 return getE();
32773
32774 }
32775 throw new IllegalStateException();
32776 }
32777
32778
32779 public boolean isSet(_Fields field) {
32780 if (field == null) {
32781 throw new IllegalArgumentException();
32782 }
32783
32784 switch (field) {
32785 case E:
32786 return isSetE();
32787 }
32788 throw new IllegalStateException();
32789 }
32790
32791 @Override
32792 public boolean equals(Object that) {
32793 if (that == null)
32794 return false;
32795 if (that instanceof removeNamedQuery_result)
32796 return this.equals((removeNamedQuery_result)that);
32797 return false;
32798 }
32799
32800 public boolean equals(removeNamedQuery_result that) {
32801 if (that == null)
32802 return false;
32803
32804 boolean this_present_e = true && this.isSetE();
32805 boolean that_present_e = true && that.isSetE();
32806 if (this_present_e || that_present_e) {
32807 if (!(this_present_e && that_present_e))
32808 return false;
32809 if (!this.e.equals(that.e))
32810 return false;
32811 }
32812
32813 return true;
32814 }
32815
32816 @Override
32817 public int hashCode() {
32818 List<Object> list = new ArrayList<Object>();
32819
32820 boolean present_e = true && (isSetE());
32821 list.add(present_e);
32822 if (present_e)
32823 list.add(e);
32824
32825 return list.hashCode();
32826 }
32827
32828 @Override
32829 public int compareTo(removeNamedQuery_result other) {
32830 if (!getClass().equals(other.getClass())) {
32831 return getClass().getName().compareTo(other.getClass().getName());
32832 }
32833
32834 int lastComparison = 0;
32835
32836 lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE());
32837 if (lastComparison != 0) {
32838 return lastComparison;
32839 }
32840 if (isSetE()) {
32841 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e);
32842 if (lastComparison != 0) {
32843 return lastComparison;
32844 }
32845 }
32846 return 0;
32847 }
32848
32849 public _Fields fieldForId(int fieldId) {
32850 return _Fields.findByThriftId(fieldId);
32851 }
32852
32853 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
32854 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
32855 }
32856
32857 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
32858 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
32859 }
32860
32861 @Override
32862 public String toString() {
32863 StringBuilder sb = new StringBuilder("removeNamedQuery_result(");
32864 boolean first = true;
32865
32866 sb.append("e:");
32867 if (this.e == null) {
32868 sb.append("null");
32869 } else {
32870 sb.append(this.e);
32871 }
32872 first = false;
32873 sb.append(")");
32874 return sb.toString();
32875 }
32876
32877 public void validate() throws org.apache.thrift.TException {
32878
32879
32880 }
32881
32882 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
32883 try {
32884 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
32885 } catch (org.apache.thrift.TException te) {
32886 throw new java.io.IOException(te);
32887 }
32888 }
32889
32890 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
32891 try {
32892 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
32893 } catch (org.apache.thrift.TException te) {
32894 throw new java.io.IOException(te);
32895 }
32896 }
32897
32898 private static class removeNamedQuery_resultStandardSchemeFactory implements SchemeFactory {
32899 public removeNamedQuery_resultStandardScheme getScheme() {
32900 return new removeNamedQuery_resultStandardScheme();
32901 }
32902 }
32903
32904 private static class removeNamedQuery_resultStandardScheme extends StandardScheme<removeNamedQuery_result> {
32905
32906 public void read(org.apache.thrift.protocol.TProtocol iprot, removeNamedQuery_result struct) throws org.apache.thrift.TException {
32907 org.apache.thrift.protocol.TField schemeField;
32908 iprot.readStructBegin();
32909 while (true)
32910 {
32911 schemeField = iprot.readFieldBegin();
32912 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
32913 break;
32914 }
32915 switch (schemeField.id) {
32916 case 1:
32917 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
32918 struct.e = new CentralDogmaException();
32919 struct.e.read(iprot);
32920 struct.setEIsSet(true);
32921 } else {
32922 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
32923 }
32924 break;
32925 default:
32926 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
32927 }
32928 iprot.readFieldEnd();
32929 }
32930 iprot.readStructEnd();
32931
32932
32933 struct.validate();
32934 }
32935
32936 public void write(org.apache.thrift.protocol.TProtocol oprot, removeNamedQuery_result struct) throws org.apache.thrift.TException {
32937 struct.validate();
32938
32939 oprot.writeStructBegin(STRUCT_DESC);
32940 if (struct.e != null) {
32941 oprot.writeFieldBegin(E_FIELD_DESC);
32942 struct.e.write(oprot);
32943 oprot.writeFieldEnd();
32944 }
32945 oprot.writeFieldStop();
32946 oprot.writeStructEnd();
32947 }
32948
32949 }
32950
32951 private static class removeNamedQuery_resultTupleSchemeFactory implements SchemeFactory {
32952 public removeNamedQuery_resultTupleScheme getScheme() {
32953 return new removeNamedQuery_resultTupleScheme();
32954 }
32955 }
32956
32957 private static class removeNamedQuery_resultTupleScheme extends TupleScheme<removeNamedQuery_result> {
32958
32959 @Override
32960 public void write(org.apache.thrift.protocol.TProtocol prot, removeNamedQuery_result struct) throws org.apache.thrift.TException {
32961 TTupleProtocol oprot = (TTupleProtocol) prot;
32962 BitSet optionals = new BitSet();
32963 if (struct.isSetE()) {
32964 optionals.set(0);
32965 }
32966 oprot.writeBitSet(optionals, 1);
32967 if (struct.isSetE()) {
32968 struct.e.write(oprot);
32969 }
32970 }
32971
32972 @Override
32973 public void read(org.apache.thrift.protocol.TProtocol prot, removeNamedQuery_result struct) throws org.apache.thrift.TException {
32974 TTupleProtocol iprot = (TTupleProtocol) prot;
32975 BitSet incoming = iprot.readBitSet(1);
32976 if (incoming.get(0)) {
32977 struct.e = new CentralDogmaException();
32978 struct.e.read(iprot);
32979 struct.setEIsSet(true);
32980 }
32981 }
32982 }
32983
32984 }
32985
32986 public static class listNamedQueries_args implements org.apache.thrift.TBase<listNamedQueries_args, listNamedQueries_args._Fields>, java.io.Serializable, Cloneable, Comparable<listNamedQueries_args> {
32987 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("listNamedQueries_args");
32988
32989 private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)1);
32990
32991 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
32992 static {
32993 schemes.put(StandardScheme.class, new listNamedQueries_argsStandardSchemeFactory());
32994 schemes.put(TupleScheme.class, new listNamedQueries_argsTupleSchemeFactory());
32995 }
32996
32997 public String projectName;
32998
32999
33000 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
33001 PROJECT_NAME((short)1, "projectName");
33002
33003 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
33004
33005 static {
33006 for (_Fields field : EnumSet.allOf(_Fields.class)) {
33007 byName.put(field.getFieldName(), field);
33008 }
33009 }
33010
33011
33012
33013
33014 public static _Fields findByThriftId(int fieldId) {
33015 switch(fieldId) {
33016 case 1:
33017 return PROJECT_NAME;
33018 default:
33019 return null;
33020 }
33021 }
33022
33023
33024
33025
33026
33027 public static _Fields findByThriftIdOrThrow(int fieldId) {
33028 _Fields fields = findByThriftId(fieldId);
33029 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
33030 return fields;
33031 }
33032
33033
33034
33035
33036 public static _Fields findByName(String name) {
33037 return byName.get(name);
33038 }
33039
33040 private final short _thriftId;
33041 private final String _fieldName;
33042
33043 _Fields(short thriftId, String fieldName) {
33044 _thriftId = thriftId;
33045 _fieldName = fieldName;
33046 }
33047
33048 public short getThriftFieldId() {
33049 return _thriftId;
33050 }
33051
33052 public String getFieldName() {
33053 return _fieldName;
33054 }
33055 }
33056
33057
33058 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
33059 static {
33060 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
33061 tmpMap.put(_Fields.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", org.apache.thrift.TFieldRequirementType.DEFAULT,
33062 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
33063 metaDataMap = Collections.unmodifiableMap(tmpMap);
33064 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(listNamedQueries_args.class, metaDataMap);
33065 }
33066
33067 public listNamedQueries_args() {
33068 }
33069
33070 public listNamedQueries_args(
33071 String projectName)
33072 {
33073 this();
33074 this.projectName = projectName;
33075 }
33076
33077
33078
33079
33080 public listNamedQueries_args(listNamedQueries_args other) {
33081 if (other.isSetProjectName()) {
33082 this.projectName = other.projectName;
33083 }
33084 }
33085
33086 public listNamedQueries_args deepCopy() {
33087 return new listNamedQueries_args(this);
33088 }
33089
33090 @Override
33091 public void clear() {
33092 this.projectName = null;
33093 }
33094
33095 public String getProjectName() {
33096 return this.projectName;
33097 }
33098
33099 public listNamedQueries_args setProjectName(String projectName) {
33100 this.projectName = projectName;
33101 return this;
33102 }
33103
33104 public void unsetProjectName() {
33105 this.projectName = null;
33106 }
33107
33108
33109 public boolean isSetProjectName() {
33110 return this.projectName != null;
33111 }
33112
33113 public void setProjectNameIsSet(boolean value) {
33114 if (!value) {
33115 this.projectName = null;
33116 }
33117 }
33118
33119 public void setFieldValue(_Fields field, Object value) {
33120 switch (field) {
33121 case PROJECT_NAME:
33122 if (value == null) {
33123 unsetProjectName();
33124 } else {
33125 setProjectName((String)value);
33126 }
33127 break;
33128
33129 }
33130 }
33131
33132 public Object getFieldValue(_Fields field) {
33133 switch (field) {
33134 case PROJECT_NAME:
33135 return getProjectName();
33136
33137 }
33138 throw new IllegalStateException();
33139 }
33140
33141
33142 public boolean isSet(_Fields field) {
33143 if (field == null) {
33144 throw new IllegalArgumentException();
33145 }
33146
33147 switch (field) {
33148 case PROJECT_NAME:
33149 return isSetProjectName();
33150 }
33151 throw new IllegalStateException();
33152 }
33153
33154 @Override
33155 public boolean equals(Object that) {
33156 if (that == null)
33157 return false;
33158 if (that instanceof listNamedQueries_args)
33159 return this.equals((listNamedQueries_args)that);
33160 return false;
33161 }
33162
33163 public boolean equals(listNamedQueries_args that) {
33164 if (that == null)
33165 return false;
33166
33167 boolean this_present_projectName = true && this.isSetProjectName();
33168 boolean that_present_projectName = true && that.isSetProjectName();
33169 if (this_present_projectName || that_present_projectName) {
33170 if (!(this_present_projectName && that_present_projectName))
33171 return false;
33172 if (!this.projectName.equals(that.projectName))
33173 return false;
33174 }
33175
33176 return true;
33177 }
33178
33179 @Override
33180 public int hashCode() {
33181 List<Object> list = new ArrayList<Object>();
33182
33183 boolean present_projectName = true && (isSetProjectName());
33184 list.add(present_projectName);
33185 if (present_projectName)
33186 list.add(projectName);
33187
33188 return list.hashCode();
33189 }
33190
33191 @Override
33192 public int compareTo(listNamedQueries_args other) {
33193 if (!getClass().equals(other.getClass())) {
33194 return getClass().getName().compareTo(other.getClass().getName());
33195 }
33196
33197 int lastComparison = 0;
33198
33199 lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName());
33200 if (lastComparison != 0) {
33201 return lastComparison;
33202 }
33203 if (isSetProjectName()) {
33204 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName);
33205 if (lastComparison != 0) {
33206 return lastComparison;
33207 }
33208 }
33209 return 0;
33210 }
33211
33212 public _Fields fieldForId(int fieldId) {
33213 return _Fields.findByThriftId(fieldId);
33214 }
33215
33216 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
33217 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
33218 }
33219
33220 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
33221 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
33222 }
33223
33224 @Override
33225 public String toString() {
33226 StringBuilder sb = new StringBuilder("listNamedQueries_args(");
33227 boolean first = true;
33228
33229 sb.append("projectName:");
33230 if (this.projectName == null) {
33231 sb.append("null");
33232 } else {
33233 sb.append(this.projectName);
33234 }
33235 first = false;
33236 sb.append(")");
33237 return sb.toString();
33238 }
33239
33240 public void validate() throws org.apache.thrift.TException {
33241
33242
33243 }
33244
33245 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
33246 try {
33247 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
33248 } catch (org.apache.thrift.TException te) {
33249 throw new java.io.IOException(te);
33250 }
33251 }
33252
33253 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
33254 try {
33255 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
33256 } catch (org.apache.thrift.TException te) {
33257 throw new java.io.IOException(te);
33258 }
33259 }
33260
33261 private static class listNamedQueries_argsStandardSchemeFactory implements SchemeFactory {
33262 public listNamedQueries_argsStandardScheme getScheme() {
33263 return new listNamedQueries_argsStandardScheme();
33264 }
33265 }
33266
33267 private static class listNamedQueries_argsStandardScheme extends StandardScheme<listNamedQueries_args> {
33268
33269 public void read(org.apache.thrift.protocol.TProtocol iprot, listNamedQueries_args struct) throws org.apache.thrift.TException {
33270 org.apache.thrift.protocol.TField schemeField;
33271 iprot.readStructBegin();
33272 while (true)
33273 {
33274 schemeField = iprot.readFieldBegin();
33275 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
33276 break;
33277 }
33278 switch (schemeField.id) {
33279 case 1:
33280 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
33281 struct.projectName = iprot.readString();
33282 struct.setProjectNameIsSet(true);
33283 } else {
33284 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
33285 }
33286 break;
33287 default:
33288 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
33289 }
33290 iprot.readFieldEnd();
33291 }
33292 iprot.readStructEnd();
33293
33294
33295 struct.validate();
33296 }
33297
33298 public void write(org.apache.thrift.protocol.TProtocol oprot, listNamedQueries_args struct) throws org.apache.thrift.TException {
33299 struct.validate();
33300
33301 oprot.writeStructBegin(STRUCT_DESC);
33302 if (struct.projectName != null) {
33303 oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC);
33304 oprot.writeString(struct.projectName);
33305 oprot.writeFieldEnd();
33306 }
33307 oprot.writeFieldStop();
33308 oprot.writeStructEnd();
33309 }
33310
33311 }
33312
33313 private static class listNamedQueries_argsTupleSchemeFactory implements SchemeFactory {
33314 public listNamedQueries_argsTupleScheme getScheme() {
33315 return new listNamedQueries_argsTupleScheme();
33316 }
33317 }
33318
33319 private static class listNamedQueries_argsTupleScheme extends TupleScheme<listNamedQueries_args> {
33320
33321 @Override
33322 public void write(org.apache.thrift.protocol.TProtocol prot, listNamedQueries_args struct) throws org.apache.thrift.TException {
33323 TTupleProtocol oprot = (TTupleProtocol) prot;
33324 BitSet optionals = new BitSet();
33325 if (struct.isSetProjectName()) {
33326 optionals.set(0);
33327 }
33328 oprot.writeBitSet(optionals, 1);
33329 if (struct.isSetProjectName()) {
33330 oprot.writeString(struct.projectName);
33331 }
33332 }
33333
33334 @Override
33335 public void read(org.apache.thrift.protocol.TProtocol prot, listNamedQueries_args struct) throws org.apache.thrift.TException {
33336 TTupleProtocol iprot = (TTupleProtocol) prot;
33337 BitSet incoming = iprot.readBitSet(1);
33338 if (incoming.get(0)) {
33339 struct.projectName = iprot.readString();
33340 struct.setProjectNameIsSet(true);
33341 }
33342 }
33343 }
33344
33345 }
33346
33347 public static class listNamedQueries_result implements org.apache.thrift.TBase<listNamedQueries_result, listNamedQueries_result._Fields>, java.io.Serializable, Cloneable, Comparable<listNamedQueries_result> {
33348 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("listNamedQueries_result");
33349
33350 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
33351 private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
33352
33353 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
33354 static {
33355 schemes.put(StandardScheme.class, new listNamedQueries_resultStandardSchemeFactory());
33356 schemes.put(TupleScheme.class, new listNamedQueries_resultTupleSchemeFactory());
33357 }
33358
33359 public List<NamedQuery> success;
33360 public CentralDogmaException e;
33361
33362
33363 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
33364 SUCCESS((short)0, "success"),
33365 E((short)1, "e");
33366
33367 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
33368
33369 static {
33370 for (_Fields field : EnumSet.allOf(_Fields.class)) {
33371 byName.put(field.getFieldName(), field);
33372 }
33373 }
33374
33375
33376
33377
33378 public static _Fields findByThriftId(int fieldId) {
33379 switch(fieldId) {
33380 case 0:
33381 return SUCCESS;
33382 case 1:
33383 return E;
33384 default:
33385 return null;
33386 }
33387 }
33388
33389
33390
33391
33392
33393 public static _Fields findByThriftIdOrThrow(int fieldId) {
33394 _Fields fields = findByThriftId(fieldId);
33395 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
33396 return fields;
33397 }
33398
33399
33400
33401
33402 public static _Fields findByName(String name) {
33403 return byName.get(name);
33404 }
33405
33406 private final short _thriftId;
33407 private final String _fieldName;
33408
33409 _Fields(short thriftId, String fieldName) {
33410 _thriftId = thriftId;
33411 _fieldName = fieldName;
33412 }
33413
33414 public short getThriftFieldId() {
33415 return _thriftId;
33416 }
33417
33418 public String getFieldName() {
33419 return _fieldName;
33420 }
33421 }
33422
33423
33424 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
33425 static {
33426 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
33427 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
33428 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
33429 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, NamedQuery.class))));
33430 tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
33431 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
33432 metaDataMap = Collections.unmodifiableMap(tmpMap);
33433 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(listNamedQueries_result.class, metaDataMap);
33434 }
33435
33436 public listNamedQueries_result() {
33437 }
33438
33439 public listNamedQueries_result(
33440 List<NamedQuery> success,
33441 CentralDogmaException e)
33442 {
33443 this();
33444 this.success = success;
33445 this.e = e;
33446 }
33447
33448
33449
33450
33451 public listNamedQueries_result(listNamedQueries_result other) {
33452 if (other.isSetSuccess()) {
33453 List<NamedQuery> __this__success = new ArrayList<NamedQuery>(other.success.size());
33454 for (NamedQuery other_element : other.success) {
33455 __this__success.add(new NamedQuery(other_element));
33456 }
33457 this.success = __this__success;
33458 }
33459 if (other.isSetE()) {
33460 this.e = new CentralDogmaException(other.e);
33461 }
33462 }
33463
33464 public listNamedQueries_result deepCopy() {
33465 return new listNamedQueries_result(this);
33466 }
33467
33468 @Override
33469 public void clear() {
33470 this.success = null;
33471 this.e = null;
33472 }
33473
33474 public int getSuccessSize() {
33475 return (this.success == null) ? 0 : this.success.size();
33476 }
33477
33478 public java.util.Iterator<NamedQuery> getSuccessIterator() {
33479 return (this.success == null) ? null : this.success.iterator();
33480 }
33481
33482 public void addToSuccess(NamedQuery elem) {
33483 if (this.success == null) {
33484 this.success = new ArrayList<NamedQuery>();
33485 }
33486 this.success.add(elem);
33487 }
33488
33489 public List<NamedQuery> getSuccess() {
33490 return this.success;
33491 }
33492
33493 public listNamedQueries_result setSuccess(List<NamedQuery> success) {
33494 this.success = success;
33495 return this;
33496 }
33497
33498 public void unsetSuccess() {
33499 this.success = null;
33500 }
33501
33502
33503 public boolean isSetSuccess() {
33504 return this.success != null;
33505 }
33506
33507 public void setSuccessIsSet(boolean value) {
33508 if (!value) {
33509 this.success = null;
33510 }
33511 }
33512
33513 public CentralDogmaException getE() {
33514 return this.e;
33515 }
33516
33517 public listNamedQueries_result setE(CentralDogmaException e) {
33518 this.e = e;
33519 return this;
33520 }
33521
33522 public void unsetE() {
33523 this.e = null;
33524 }
33525
33526
33527 public boolean isSetE() {
33528 return this.e != null;
33529 }
33530
33531 public void setEIsSet(boolean value) {
33532 if (!value) {
33533 this.e = null;
33534 }
33535 }
33536
33537 public void setFieldValue(_Fields field, Object value) {
33538 switch (field) {
33539 case SUCCESS:
33540 if (value == null) {
33541 unsetSuccess();
33542 } else {
33543 setSuccess((List<NamedQuery>)value);
33544 }
33545 break;
33546
33547 case E:
33548 if (value == null) {
33549 unsetE();
33550 } else {
33551 setE((CentralDogmaException)value);
33552 }
33553 break;
33554
33555 }
33556 }
33557
33558 public Object getFieldValue(_Fields field) {
33559 switch (field) {
33560 case SUCCESS:
33561 return getSuccess();
33562
33563 case E:
33564 return getE();
33565
33566 }
33567 throw new IllegalStateException();
33568 }
33569
33570
33571 public boolean isSet(_Fields field) {
33572 if (field == null) {
33573 throw new IllegalArgumentException();
33574 }
33575
33576 switch (field) {
33577 case SUCCESS:
33578 return isSetSuccess();
33579 case E:
33580 return isSetE();
33581 }
33582 throw new IllegalStateException();
33583 }
33584
33585 @Override
33586 public boolean equals(Object that) {
33587 if (that == null)
33588 return false;
33589 if (that instanceof listNamedQueries_result)
33590 return this.equals((listNamedQueries_result)that);
33591 return false;
33592 }
33593
33594 public boolean equals(listNamedQueries_result that) {
33595 if (that == null)
33596 return false;
33597
33598 boolean this_present_success = true && this.isSetSuccess();
33599 boolean that_present_success = true && that.isSetSuccess();
33600 if (this_present_success || that_present_success) {
33601 if (!(this_present_success && that_present_success))
33602 return false;
33603 if (!this.success.equals(that.success))
33604 return false;
33605 }
33606
33607 boolean this_present_e = true && this.isSetE();
33608 boolean that_present_e = true && that.isSetE();
33609 if (this_present_e || that_present_e) {
33610 if (!(this_present_e && that_present_e))
33611 return false;
33612 if (!this.e.equals(that.e))
33613 return false;
33614 }
33615
33616 return true;
33617 }
33618
33619 @Override
33620 public int hashCode() {
33621 List<Object> list = new ArrayList<Object>();
33622
33623 boolean present_success = true && (isSetSuccess());
33624 list.add(present_success);
33625 if (present_success)
33626 list.add(success);
33627
33628 boolean present_e = true && (isSetE());
33629 list.add(present_e);
33630 if (present_e)
33631 list.add(e);
33632
33633 return list.hashCode();
33634 }
33635
33636 @Override
33637 public int compareTo(listNamedQueries_result other) {
33638 if (!getClass().equals(other.getClass())) {
33639 return getClass().getName().compareTo(other.getClass().getName());
33640 }
33641
33642 int lastComparison = 0;
33643
33644 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
33645 if (lastComparison != 0) {
33646 return lastComparison;
33647 }
33648 if (isSetSuccess()) {
33649 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
33650 if (lastComparison != 0) {
33651 return lastComparison;
33652 }
33653 }
33654 lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE());
33655 if (lastComparison != 0) {
33656 return lastComparison;
33657 }
33658 if (isSetE()) {
33659 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e);
33660 if (lastComparison != 0) {
33661 return lastComparison;
33662 }
33663 }
33664 return 0;
33665 }
33666
33667 public _Fields fieldForId(int fieldId) {
33668 return _Fields.findByThriftId(fieldId);
33669 }
33670
33671 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
33672 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
33673 }
33674
33675 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
33676 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
33677 }
33678
33679 @Override
33680 public String toString() {
33681 StringBuilder sb = new StringBuilder("listNamedQueries_result(");
33682 boolean first = true;
33683
33684 sb.append("success:");
33685 if (this.success == null) {
33686 sb.append("null");
33687 } else {
33688 sb.append(this.success);
33689 }
33690 first = false;
33691 if (!first) sb.append(", ");
33692 sb.append("e:");
33693 if (this.e == null) {
33694 sb.append("null");
33695 } else {
33696 sb.append(this.e);
33697 }
33698 first = false;
33699 sb.append(")");
33700 return sb.toString();
33701 }
33702
33703 public void validate() throws org.apache.thrift.TException {
33704
33705
33706 }
33707
33708 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
33709 try {
33710 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
33711 } catch (org.apache.thrift.TException te) {
33712 throw new java.io.IOException(te);
33713 }
33714 }
33715
33716 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
33717 try {
33718 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
33719 } catch (org.apache.thrift.TException te) {
33720 throw new java.io.IOException(te);
33721 }
33722 }
33723
33724 private static class listNamedQueries_resultStandardSchemeFactory implements SchemeFactory {
33725 public listNamedQueries_resultStandardScheme getScheme() {
33726 return new listNamedQueries_resultStandardScheme();
33727 }
33728 }
33729
33730 private static class listNamedQueries_resultStandardScheme extends StandardScheme<listNamedQueries_result> {
33731
33732 public void read(org.apache.thrift.protocol.TProtocol iprot, listNamedQueries_result struct) throws org.apache.thrift.TException {
33733 org.apache.thrift.protocol.TField schemeField;
33734 iprot.readStructBegin();
33735 while (true)
33736 {
33737 schemeField = iprot.readFieldBegin();
33738 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
33739 break;
33740 }
33741 switch (schemeField.id) {
33742 case 0:
33743 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
33744 {
33745 org.apache.thrift.protocol.TList _list160 = iprot.readListBegin();
33746 struct.success = new ArrayList<NamedQuery>(_list160.size);
33747 NamedQuery _elem161;
33748 for (int _i162 = 0; _i162 < _list160.size; ++_i162)
33749 {
33750 _elem161 = new NamedQuery();
33751 _elem161.read(iprot);
33752 struct.success.add(_elem161);
33753 }
33754 iprot.readListEnd();
33755 }
33756 struct.setSuccessIsSet(true);
33757 } else {
33758 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
33759 }
33760 break;
33761 case 1:
33762 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
33763 struct.e = new CentralDogmaException();
33764 struct.e.read(iprot);
33765 struct.setEIsSet(true);
33766 } else {
33767 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
33768 }
33769 break;
33770 default:
33771 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
33772 }
33773 iprot.readFieldEnd();
33774 }
33775 iprot.readStructEnd();
33776
33777
33778 struct.validate();
33779 }
33780
33781 public void write(org.apache.thrift.protocol.TProtocol oprot, listNamedQueries_result struct) throws org.apache.thrift.TException {
33782 struct.validate();
33783
33784 oprot.writeStructBegin(STRUCT_DESC);
33785 if (struct.success != null) {
33786 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
33787 {
33788 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
33789 for (NamedQuery _iter163 : struct.success)
33790 {
33791 _iter163.write(oprot);
33792 }
33793 oprot.writeListEnd();
33794 }
33795 oprot.writeFieldEnd();
33796 }
33797 if (struct.e != null) {
33798 oprot.writeFieldBegin(E_FIELD_DESC);
33799 struct.e.write(oprot);
33800 oprot.writeFieldEnd();
33801 }
33802 oprot.writeFieldStop();
33803 oprot.writeStructEnd();
33804 }
33805
33806 }
33807
33808 private static class listNamedQueries_resultTupleSchemeFactory implements SchemeFactory {
33809 public listNamedQueries_resultTupleScheme getScheme() {
33810 return new listNamedQueries_resultTupleScheme();
33811 }
33812 }
33813
33814 private static class listNamedQueries_resultTupleScheme extends TupleScheme<listNamedQueries_result> {
33815
33816 @Override
33817 public void write(org.apache.thrift.protocol.TProtocol prot, listNamedQueries_result struct) throws org.apache.thrift.TException {
33818 TTupleProtocol oprot = (TTupleProtocol) prot;
33819 BitSet optionals = new BitSet();
33820 if (struct.isSetSuccess()) {
33821 optionals.set(0);
33822 }
33823 if (struct.isSetE()) {
33824 optionals.set(1);
33825 }
33826 oprot.writeBitSet(optionals, 2);
33827 if (struct.isSetSuccess()) {
33828 {
33829 oprot.writeI32(struct.success.size());
33830 for (NamedQuery _iter164 : struct.success)
33831 {
33832 _iter164.write(oprot);
33833 }
33834 }
33835 }
33836 if (struct.isSetE()) {
33837 struct.e.write(oprot);
33838 }
33839 }
33840
33841 @Override
33842 public void read(org.apache.thrift.protocol.TProtocol prot, listNamedQueries_result struct) throws org.apache.thrift.TException {
33843 TTupleProtocol iprot = (TTupleProtocol) prot;
33844 BitSet incoming = iprot.readBitSet(2);
33845 if (incoming.get(0)) {
33846 {
33847 org.apache.thrift.protocol.TList _list165 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
33848 struct.success = new ArrayList<NamedQuery>(_list165.size);
33849 NamedQuery _elem166;
33850 for (int _i167 = 0; _i167 < _list165.size; ++_i167)
33851 {
33852 _elem166 = new NamedQuery();
33853 _elem166.read(iprot);
33854 struct.success.add(_elem166);
33855 }
33856 }
33857 struct.setSuccessIsSet(true);
33858 }
33859 if (incoming.get(1)) {
33860 struct.e = new CentralDogmaException();
33861 struct.e.read(iprot);
33862 struct.setEIsSet(true);
33863 }
33864 }
33865 }
33866
33867 }
33868
33869 public static class getPlugin_args implements org.apache.thrift.TBase<getPlugin_args, getPlugin_args._Fields>, java.io.Serializable, Cloneable, Comparable<getPlugin_args> {
33870 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPlugin_args");
33871
33872 private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)1);
33873 private static final org.apache.thrift.protocol.TField PLUGIN_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("pluginName", org.apache.thrift.protocol.TType.STRING, (short)2);
33874
33875 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
33876 static {
33877 schemes.put(StandardScheme.class, new getPlugin_argsStandardSchemeFactory());
33878 schemes.put(TupleScheme.class, new getPlugin_argsTupleSchemeFactory());
33879 }
33880
33881 public String projectName;
33882 public String pluginName;
33883
33884
33885 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
33886 PROJECT_NAME((short)1, "projectName"),
33887 PLUGIN_NAME((short)2, "pluginName");
33888
33889 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
33890
33891 static {
33892 for (_Fields field : EnumSet.allOf(_Fields.class)) {
33893 byName.put(field.getFieldName(), field);
33894 }
33895 }
33896
33897
33898
33899
33900 public static _Fields findByThriftId(int fieldId) {
33901 switch(fieldId) {
33902 case 1:
33903 return PROJECT_NAME;
33904 case 2:
33905 return PLUGIN_NAME;
33906 default:
33907 return null;
33908 }
33909 }
33910
33911
33912
33913
33914
33915 public static _Fields findByThriftIdOrThrow(int fieldId) {
33916 _Fields fields = findByThriftId(fieldId);
33917 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
33918 return fields;
33919 }
33920
33921
33922
33923
33924 public static _Fields findByName(String name) {
33925 return byName.get(name);
33926 }
33927
33928 private final short _thriftId;
33929 private final String _fieldName;
33930
33931 _Fields(short thriftId, String fieldName) {
33932 _thriftId = thriftId;
33933 _fieldName = fieldName;
33934 }
33935
33936 public short getThriftFieldId() {
33937 return _thriftId;
33938 }
33939
33940 public String getFieldName() {
33941 return _fieldName;
33942 }
33943 }
33944
33945
33946 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
33947 static {
33948 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
33949 tmpMap.put(_Fields.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", org.apache.thrift.TFieldRequirementType.DEFAULT,
33950 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
33951 tmpMap.put(_Fields.PLUGIN_NAME, new org.apache.thrift.meta_data.FieldMetaData("pluginName", org.apache.thrift.TFieldRequirementType.DEFAULT,
33952 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
33953 metaDataMap = Collections.unmodifiableMap(tmpMap);
33954 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPlugin_args.class, metaDataMap);
33955 }
33956
33957 public getPlugin_args() {
33958 }
33959
33960 public getPlugin_args(
33961 String projectName,
33962 String pluginName)
33963 {
33964 this();
33965 this.projectName = projectName;
33966 this.pluginName = pluginName;
33967 }
33968
33969
33970
33971
33972 public getPlugin_args(getPlugin_args other) {
33973 if (other.isSetProjectName()) {
33974 this.projectName = other.projectName;
33975 }
33976 if (other.isSetPluginName()) {
33977 this.pluginName = other.pluginName;
33978 }
33979 }
33980
33981 public getPlugin_args deepCopy() {
33982 return new getPlugin_args(this);
33983 }
33984
33985 @Override
33986 public void clear() {
33987 this.projectName = null;
33988 this.pluginName = null;
33989 }
33990
33991 public String getProjectName() {
33992 return this.projectName;
33993 }
33994
33995 public getPlugin_args setProjectName(String projectName) {
33996 this.projectName = projectName;
33997 return this;
33998 }
33999
34000 public void unsetProjectName() {
34001 this.projectName = null;
34002 }
34003
34004
34005 public boolean isSetProjectName() {
34006 return this.projectName != null;
34007 }
34008
34009 public void setProjectNameIsSet(boolean value) {
34010 if (!value) {
34011 this.projectName = null;
34012 }
34013 }
34014
34015 public String getPluginName() {
34016 return this.pluginName;
34017 }
34018
34019 public getPlugin_args setPluginName(String pluginName) {
34020 this.pluginName = pluginName;
34021 return this;
34022 }
34023
34024 public void unsetPluginName() {
34025 this.pluginName = null;
34026 }
34027
34028
34029 public boolean isSetPluginName() {
34030 return this.pluginName != null;
34031 }
34032
34033 public void setPluginNameIsSet(boolean value) {
34034 if (!value) {
34035 this.pluginName = null;
34036 }
34037 }
34038
34039 public void setFieldValue(_Fields field, Object value) {
34040 switch (field) {
34041 case PROJECT_NAME:
34042 if (value == null) {
34043 unsetProjectName();
34044 } else {
34045 setProjectName((String)value);
34046 }
34047 break;
34048
34049 case PLUGIN_NAME:
34050 if (value == null) {
34051 unsetPluginName();
34052 } else {
34053 setPluginName((String)value);
34054 }
34055 break;
34056
34057 }
34058 }
34059
34060 public Object getFieldValue(_Fields field) {
34061 switch (field) {
34062 case PROJECT_NAME:
34063 return getProjectName();
34064
34065 case PLUGIN_NAME:
34066 return getPluginName();
34067
34068 }
34069 throw new IllegalStateException();
34070 }
34071
34072
34073 public boolean isSet(_Fields field) {
34074 if (field == null) {
34075 throw new IllegalArgumentException();
34076 }
34077
34078 switch (field) {
34079 case PROJECT_NAME:
34080 return isSetProjectName();
34081 case PLUGIN_NAME:
34082 return isSetPluginName();
34083 }
34084 throw new IllegalStateException();
34085 }
34086
34087 @Override
34088 public boolean equals(Object that) {
34089 if (that == null)
34090 return false;
34091 if (that instanceof getPlugin_args)
34092 return this.equals((getPlugin_args)that);
34093 return false;
34094 }
34095
34096 public boolean equals(getPlugin_args that) {
34097 if (that == null)
34098 return false;
34099
34100 boolean this_present_projectName = true && this.isSetProjectName();
34101 boolean that_present_projectName = true && that.isSetProjectName();
34102 if (this_present_projectName || that_present_projectName) {
34103 if (!(this_present_projectName && that_present_projectName))
34104 return false;
34105 if (!this.projectName.equals(that.projectName))
34106 return false;
34107 }
34108
34109 boolean this_present_pluginName = true && this.isSetPluginName();
34110 boolean that_present_pluginName = true && that.isSetPluginName();
34111 if (this_present_pluginName || that_present_pluginName) {
34112 if (!(this_present_pluginName && that_present_pluginName))
34113 return false;
34114 if (!this.pluginName.equals(that.pluginName))
34115 return false;
34116 }
34117
34118 return true;
34119 }
34120
34121 @Override
34122 public int hashCode() {
34123 List<Object> list = new ArrayList<Object>();
34124
34125 boolean present_projectName = true && (isSetProjectName());
34126 list.add(present_projectName);
34127 if (present_projectName)
34128 list.add(projectName);
34129
34130 boolean present_pluginName = true && (isSetPluginName());
34131 list.add(present_pluginName);
34132 if (present_pluginName)
34133 list.add(pluginName);
34134
34135 return list.hashCode();
34136 }
34137
34138 @Override
34139 public int compareTo(getPlugin_args other) {
34140 if (!getClass().equals(other.getClass())) {
34141 return getClass().getName().compareTo(other.getClass().getName());
34142 }
34143
34144 int lastComparison = 0;
34145
34146 lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName());
34147 if (lastComparison != 0) {
34148 return lastComparison;
34149 }
34150 if (isSetProjectName()) {
34151 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName);
34152 if (lastComparison != 0) {
34153 return lastComparison;
34154 }
34155 }
34156 lastComparison = Boolean.valueOf(isSetPluginName()).compareTo(other.isSetPluginName());
34157 if (lastComparison != 0) {
34158 return lastComparison;
34159 }
34160 if (isSetPluginName()) {
34161 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pluginName, other.pluginName);
34162 if (lastComparison != 0) {
34163 return lastComparison;
34164 }
34165 }
34166 return 0;
34167 }
34168
34169 public _Fields fieldForId(int fieldId) {
34170 return _Fields.findByThriftId(fieldId);
34171 }
34172
34173 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
34174 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
34175 }
34176
34177 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
34178 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
34179 }
34180
34181 @Override
34182 public String toString() {
34183 StringBuilder sb = new StringBuilder("getPlugin_args(");
34184 boolean first = true;
34185
34186 sb.append("projectName:");
34187 if (this.projectName == null) {
34188 sb.append("null");
34189 } else {
34190 sb.append(this.projectName);
34191 }
34192 first = false;
34193 if (!first) sb.append(", ");
34194 sb.append("pluginName:");
34195 if (this.pluginName == null) {
34196 sb.append("null");
34197 } else {
34198 sb.append(this.pluginName);
34199 }
34200 first = false;
34201 sb.append(")");
34202 return sb.toString();
34203 }
34204
34205 public void validate() throws org.apache.thrift.TException {
34206
34207
34208 }
34209
34210 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
34211 try {
34212 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
34213 } catch (org.apache.thrift.TException te) {
34214 throw new java.io.IOException(te);
34215 }
34216 }
34217
34218 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
34219 try {
34220 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
34221 } catch (org.apache.thrift.TException te) {
34222 throw new java.io.IOException(te);
34223 }
34224 }
34225
34226 private static class getPlugin_argsStandardSchemeFactory implements SchemeFactory {
34227 public getPlugin_argsStandardScheme getScheme() {
34228 return new getPlugin_argsStandardScheme();
34229 }
34230 }
34231
34232 private static class getPlugin_argsStandardScheme extends StandardScheme<getPlugin_args> {
34233
34234 public void read(org.apache.thrift.protocol.TProtocol iprot, getPlugin_args struct) throws org.apache.thrift.TException {
34235 org.apache.thrift.protocol.TField schemeField;
34236 iprot.readStructBegin();
34237 while (true)
34238 {
34239 schemeField = iprot.readFieldBegin();
34240 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
34241 break;
34242 }
34243 switch (schemeField.id) {
34244 case 1:
34245 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
34246 struct.projectName = iprot.readString();
34247 struct.setProjectNameIsSet(true);
34248 } else {
34249 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
34250 }
34251 break;
34252 case 2:
34253 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
34254 struct.pluginName = iprot.readString();
34255 struct.setPluginNameIsSet(true);
34256 } else {
34257 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
34258 }
34259 break;
34260 default:
34261 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
34262 }
34263 iprot.readFieldEnd();
34264 }
34265 iprot.readStructEnd();
34266
34267
34268 struct.validate();
34269 }
34270
34271 public void write(org.apache.thrift.protocol.TProtocol oprot, getPlugin_args struct) throws org.apache.thrift.TException {
34272 struct.validate();
34273
34274 oprot.writeStructBegin(STRUCT_DESC);
34275 if (struct.projectName != null) {
34276 oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC);
34277 oprot.writeString(struct.projectName);
34278 oprot.writeFieldEnd();
34279 }
34280 if (struct.pluginName != null) {
34281 oprot.writeFieldBegin(PLUGIN_NAME_FIELD_DESC);
34282 oprot.writeString(struct.pluginName);
34283 oprot.writeFieldEnd();
34284 }
34285 oprot.writeFieldStop();
34286 oprot.writeStructEnd();
34287 }
34288
34289 }
34290
34291 private static class getPlugin_argsTupleSchemeFactory implements SchemeFactory {
34292 public getPlugin_argsTupleScheme getScheme() {
34293 return new getPlugin_argsTupleScheme();
34294 }
34295 }
34296
34297 private static class getPlugin_argsTupleScheme extends TupleScheme<getPlugin_args> {
34298
34299 @Override
34300 public void write(org.apache.thrift.protocol.TProtocol prot, getPlugin_args struct) throws org.apache.thrift.TException {
34301 TTupleProtocol oprot = (TTupleProtocol) prot;
34302 BitSet optionals = new BitSet();
34303 if (struct.isSetProjectName()) {
34304 optionals.set(0);
34305 }
34306 if (struct.isSetPluginName()) {
34307 optionals.set(1);
34308 }
34309 oprot.writeBitSet(optionals, 2);
34310 if (struct.isSetProjectName()) {
34311 oprot.writeString(struct.projectName);
34312 }
34313 if (struct.isSetPluginName()) {
34314 oprot.writeString(struct.pluginName);
34315 }
34316 }
34317
34318 @Override
34319 public void read(org.apache.thrift.protocol.TProtocol prot, getPlugin_args struct) throws org.apache.thrift.TException {
34320 TTupleProtocol iprot = (TTupleProtocol) prot;
34321 BitSet incoming = iprot.readBitSet(2);
34322 if (incoming.get(0)) {
34323 struct.projectName = iprot.readString();
34324 struct.setProjectNameIsSet(true);
34325 }
34326 if (incoming.get(1)) {
34327 struct.pluginName = iprot.readString();
34328 struct.setPluginNameIsSet(true);
34329 }
34330 }
34331 }
34332
34333 }
34334
34335 public static class getPlugin_result implements org.apache.thrift.TBase<getPlugin_result, getPlugin_result._Fields>, java.io.Serializable, Cloneable, Comparable<getPlugin_result> {
34336 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPlugin_result");
34337
34338 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
34339 private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
34340
34341 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
34342 static {
34343 schemes.put(StandardScheme.class, new getPlugin_resultStandardSchemeFactory());
34344 schemes.put(TupleScheme.class, new getPlugin_resultTupleSchemeFactory());
34345 }
34346
34347 public Plugin success;
34348 public CentralDogmaException e;
34349
34350
34351 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
34352 SUCCESS((short)0, "success"),
34353 E((short)1, "e");
34354
34355 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
34356
34357 static {
34358 for (_Fields field : EnumSet.allOf(_Fields.class)) {
34359 byName.put(field.getFieldName(), field);
34360 }
34361 }
34362
34363
34364
34365
34366 public static _Fields findByThriftId(int fieldId) {
34367 switch(fieldId) {
34368 case 0:
34369 return SUCCESS;
34370 case 1:
34371 return E;
34372 default:
34373 return null;
34374 }
34375 }
34376
34377
34378
34379
34380
34381 public static _Fields findByThriftIdOrThrow(int fieldId) {
34382 _Fields fields = findByThriftId(fieldId);
34383 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
34384 return fields;
34385 }
34386
34387
34388
34389
34390 public static _Fields findByName(String name) {
34391 return byName.get(name);
34392 }
34393
34394 private final short _thriftId;
34395 private final String _fieldName;
34396
34397 _Fields(short thriftId, String fieldName) {
34398 _thriftId = thriftId;
34399 _fieldName = fieldName;
34400 }
34401
34402 public short getThriftFieldId() {
34403 return _thriftId;
34404 }
34405
34406 public String getFieldName() {
34407 return _fieldName;
34408 }
34409 }
34410
34411
34412 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
34413 static {
34414 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
34415 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
34416 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Plugin.class)));
34417 tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
34418 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
34419 metaDataMap = Collections.unmodifiableMap(tmpMap);
34420 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPlugin_result.class, metaDataMap);
34421 }
34422
34423 public getPlugin_result() {
34424 }
34425
34426 public getPlugin_result(
34427 Plugin success,
34428 CentralDogmaException e)
34429 {
34430 this();
34431 this.success = success;
34432 this.e = e;
34433 }
34434
34435
34436
34437
34438 public getPlugin_result(getPlugin_result other) {
34439 if (other.isSetSuccess()) {
34440 this.success = new Plugin(other.success);
34441 }
34442 if (other.isSetE()) {
34443 this.e = new CentralDogmaException(other.e);
34444 }
34445 }
34446
34447 public getPlugin_result deepCopy() {
34448 return new getPlugin_result(this);
34449 }
34450
34451 @Override
34452 public void clear() {
34453 this.success = null;
34454 this.e = null;
34455 }
34456
34457 public Plugin getSuccess() {
34458 return this.success;
34459 }
34460
34461 public getPlugin_result setSuccess(Plugin success) {
34462 this.success = success;
34463 return this;
34464 }
34465
34466 public void unsetSuccess() {
34467 this.success = null;
34468 }
34469
34470
34471 public boolean isSetSuccess() {
34472 return this.success != null;
34473 }
34474
34475 public void setSuccessIsSet(boolean value) {
34476 if (!value) {
34477 this.success = null;
34478 }
34479 }
34480
34481 public CentralDogmaException getE() {
34482 return this.e;
34483 }
34484
34485 public getPlugin_result setE(CentralDogmaException e) {
34486 this.e = e;
34487 return this;
34488 }
34489
34490 public void unsetE() {
34491 this.e = null;
34492 }
34493
34494
34495 public boolean isSetE() {
34496 return this.e != null;
34497 }
34498
34499 public void setEIsSet(boolean value) {
34500 if (!value) {
34501 this.e = null;
34502 }
34503 }
34504
34505 public void setFieldValue(_Fields field, Object value) {
34506 switch (field) {
34507 case SUCCESS:
34508 if (value == null) {
34509 unsetSuccess();
34510 } else {
34511 setSuccess((Plugin)value);
34512 }
34513 break;
34514
34515 case E:
34516 if (value == null) {
34517 unsetE();
34518 } else {
34519 setE((CentralDogmaException)value);
34520 }
34521 break;
34522
34523 }
34524 }
34525
34526 public Object getFieldValue(_Fields field) {
34527 switch (field) {
34528 case SUCCESS:
34529 return getSuccess();
34530
34531 case E:
34532 return getE();
34533
34534 }
34535 throw new IllegalStateException();
34536 }
34537
34538
34539 public boolean isSet(_Fields field) {
34540 if (field == null) {
34541 throw new IllegalArgumentException();
34542 }
34543
34544 switch (field) {
34545 case SUCCESS:
34546 return isSetSuccess();
34547 case E:
34548 return isSetE();
34549 }
34550 throw new IllegalStateException();
34551 }
34552
34553 @Override
34554 public boolean equals(Object that) {
34555 if (that == null)
34556 return false;
34557 if (that instanceof getPlugin_result)
34558 return this.equals((getPlugin_result)that);
34559 return false;
34560 }
34561
34562 public boolean equals(getPlugin_result that) {
34563 if (that == null)
34564 return false;
34565
34566 boolean this_present_success = true && this.isSetSuccess();
34567 boolean that_present_success = true && that.isSetSuccess();
34568 if (this_present_success || that_present_success) {
34569 if (!(this_present_success && that_present_success))
34570 return false;
34571 if (!this.success.equals(that.success))
34572 return false;
34573 }
34574
34575 boolean this_present_e = true && this.isSetE();
34576 boolean that_present_e = true && that.isSetE();
34577 if (this_present_e || that_present_e) {
34578 if (!(this_present_e && that_present_e))
34579 return false;
34580 if (!this.e.equals(that.e))
34581 return false;
34582 }
34583
34584 return true;
34585 }
34586
34587 @Override
34588 public int hashCode() {
34589 List<Object> list = new ArrayList<Object>();
34590
34591 boolean present_success = true && (isSetSuccess());
34592 list.add(present_success);
34593 if (present_success)
34594 list.add(success);
34595
34596 boolean present_e = true && (isSetE());
34597 list.add(present_e);
34598 if (present_e)
34599 list.add(e);
34600
34601 return list.hashCode();
34602 }
34603
34604 @Override
34605 public int compareTo(getPlugin_result other) {
34606 if (!getClass().equals(other.getClass())) {
34607 return getClass().getName().compareTo(other.getClass().getName());
34608 }
34609
34610 int lastComparison = 0;
34611
34612 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
34613 if (lastComparison != 0) {
34614 return lastComparison;
34615 }
34616 if (isSetSuccess()) {
34617 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
34618 if (lastComparison != 0) {
34619 return lastComparison;
34620 }
34621 }
34622 lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE());
34623 if (lastComparison != 0) {
34624 return lastComparison;
34625 }
34626 if (isSetE()) {
34627 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e);
34628 if (lastComparison != 0) {
34629 return lastComparison;
34630 }
34631 }
34632 return 0;
34633 }
34634
34635 public _Fields fieldForId(int fieldId) {
34636 return _Fields.findByThriftId(fieldId);
34637 }
34638
34639 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
34640 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
34641 }
34642
34643 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
34644 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
34645 }
34646
34647 @Override
34648 public String toString() {
34649 StringBuilder sb = new StringBuilder("getPlugin_result(");
34650 boolean first = true;
34651
34652 sb.append("success:");
34653 if (this.success == null) {
34654 sb.append("null");
34655 } else {
34656 sb.append(this.success);
34657 }
34658 first = false;
34659 if (!first) sb.append(", ");
34660 sb.append("e:");
34661 if (this.e == null) {
34662 sb.append("null");
34663 } else {
34664 sb.append(this.e);
34665 }
34666 first = false;
34667 sb.append(")");
34668 return sb.toString();
34669 }
34670
34671 public void validate() throws org.apache.thrift.TException {
34672
34673
34674 if (success != null) {
34675 success.validate();
34676 }
34677 }
34678
34679 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
34680 try {
34681 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
34682 } catch (org.apache.thrift.TException te) {
34683 throw new java.io.IOException(te);
34684 }
34685 }
34686
34687 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
34688 try {
34689 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
34690 } catch (org.apache.thrift.TException te) {
34691 throw new java.io.IOException(te);
34692 }
34693 }
34694
34695 private static class getPlugin_resultStandardSchemeFactory implements SchemeFactory {
34696 public getPlugin_resultStandardScheme getScheme() {
34697 return new getPlugin_resultStandardScheme();
34698 }
34699 }
34700
34701 private static class getPlugin_resultStandardScheme extends StandardScheme<getPlugin_result> {
34702
34703 public void read(org.apache.thrift.protocol.TProtocol iprot, getPlugin_result struct) throws org.apache.thrift.TException {
34704 org.apache.thrift.protocol.TField schemeField;
34705 iprot.readStructBegin();
34706 while (true)
34707 {
34708 schemeField = iprot.readFieldBegin();
34709 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
34710 break;
34711 }
34712 switch (schemeField.id) {
34713 case 0:
34714 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
34715 struct.success = new Plugin();
34716 struct.success.read(iprot);
34717 struct.setSuccessIsSet(true);
34718 } else {
34719 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
34720 }
34721 break;
34722 case 1:
34723 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
34724 struct.e = new CentralDogmaException();
34725 struct.e.read(iprot);
34726 struct.setEIsSet(true);
34727 } else {
34728 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
34729 }
34730 break;
34731 default:
34732 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
34733 }
34734 iprot.readFieldEnd();
34735 }
34736 iprot.readStructEnd();
34737
34738
34739 struct.validate();
34740 }
34741
34742 public void write(org.apache.thrift.protocol.TProtocol oprot, getPlugin_result struct) throws org.apache.thrift.TException {
34743 struct.validate();
34744
34745 oprot.writeStructBegin(STRUCT_DESC);
34746 if (struct.success != null) {
34747 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
34748 struct.success.write(oprot);
34749 oprot.writeFieldEnd();
34750 }
34751 if (struct.e != null) {
34752 oprot.writeFieldBegin(E_FIELD_DESC);
34753 struct.e.write(oprot);
34754 oprot.writeFieldEnd();
34755 }
34756 oprot.writeFieldStop();
34757 oprot.writeStructEnd();
34758 }
34759
34760 }
34761
34762 private static class getPlugin_resultTupleSchemeFactory implements SchemeFactory {
34763 public getPlugin_resultTupleScheme getScheme() {
34764 return new getPlugin_resultTupleScheme();
34765 }
34766 }
34767
34768 private static class getPlugin_resultTupleScheme extends TupleScheme<getPlugin_result> {
34769
34770 @Override
34771 public void write(org.apache.thrift.protocol.TProtocol prot, getPlugin_result struct) throws org.apache.thrift.TException {
34772 TTupleProtocol oprot = (TTupleProtocol) prot;
34773 BitSet optionals = new BitSet();
34774 if (struct.isSetSuccess()) {
34775 optionals.set(0);
34776 }
34777 if (struct.isSetE()) {
34778 optionals.set(1);
34779 }
34780 oprot.writeBitSet(optionals, 2);
34781 if (struct.isSetSuccess()) {
34782 struct.success.write(oprot);
34783 }
34784 if (struct.isSetE()) {
34785 struct.e.write(oprot);
34786 }
34787 }
34788
34789 @Override
34790 public void read(org.apache.thrift.protocol.TProtocol prot, getPlugin_result struct) throws org.apache.thrift.TException {
34791 TTupleProtocol iprot = (TTupleProtocol) prot;
34792 BitSet incoming = iprot.readBitSet(2);
34793 if (incoming.get(0)) {
34794 struct.success = new Plugin();
34795 struct.success.read(iprot);
34796 struct.setSuccessIsSet(true);
34797 }
34798 if (incoming.get(1)) {
34799 struct.e = new CentralDogmaException();
34800 struct.e.read(iprot);
34801 struct.setEIsSet(true);
34802 }
34803 }
34804 }
34805
34806 }
34807
34808 public static class savePlugin_args implements org.apache.thrift.TBase<savePlugin_args, savePlugin_args._Fields>, java.io.Serializable, Cloneable, Comparable<savePlugin_args> {
34809 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("savePlugin_args");
34810
34811 private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)1);
34812 private static final org.apache.thrift.protocol.TField PLUGIN_FIELD_DESC = new org.apache.thrift.protocol.TField("plugin", org.apache.thrift.protocol.TType.STRUCT, (short)2);
34813
34814 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
34815 static {
34816 schemes.put(StandardScheme.class, new savePlugin_argsStandardSchemeFactory());
34817 schemes.put(TupleScheme.class, new savePlugin_argsTupleSchemeFactory());
34818 }
34819
34820 public String projectName;
34821 public Plugin plugin;
34822
34823
34824 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
34825 PROJECT_NAME((short)1, "projectName"),
34826 PLUGIN((short)2, "plugin");
34827
34828 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
34829
34830 static {
34831 for (_Fields field : EnumSet.allOf(_Fields.class)) {
34832 byName.put(field.getFieldName(), field);
34833 }
34834 }
34835
34836
34837
34838
34839 public static _Fields findByThriftId(int fieldId) {
34840 switch(fieldId) {
34841 case 1:
34842 return PROJECT_NAME;
34843 case 2:
34844 return PLUGIN;
34845 default:
34846 return null;
34847 }
34848 }
34849
34850
34851
34852
34853
34854 public static _Fields findByThriftIdOrThrow(int fieldId) {
34855 _Fields fields = findByThriftId(fieldId);
34856 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
34857 return fields;
34858 }
34859
34860
34861
34862
34863 public static _Fields findByName(String name) {
34864 return byName.get(name);
34865 }
34866
34867 private final short _thriftId;
34868 private final String _fieldName;
34869
34870 _Fields(short thriftId, String fieldName) {
34871 _thriftId = thriftId;
34872 _fieldName = fieldName;
34873 }
34874
34875 public short getThriftFieldId() {
34876 return _thriftId;
34877 }
34878
34879 public String getFieldName() {
34880 return _fieldName;
34881 }
34882 }
34883
34884
34885 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
34886 static {
34887 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
34888 tmpMap.put(_Fields.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", org.apache.thrift.TFieldRequirementType.DEFAULT,
34889 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
34890 tmpMap.put(_Fields.PLUGIN, new org.apache.thrift.meta_data.FieldMetaData("plugin", org.apache.thrift.TFieldRequirementType.DEFAULT,
34891 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Plugin.class)));
34892 metaDataMap = Collections.unmodifiableMap(tmpMap);
34893 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(savePlugin_args.class, metaDataMap);
34894 }
34895
34896 public savePlugin_args() {
34897 }
34898
34899 public savePlugin_args(
34900 String projectName,
34901 Plugin plugin)
34902 {
34903 this();
34904 this.projectName = projectName;
34905 this.plugin = plugin;
34906 }
34907
34908
34909
34910
34911 public savePlugin_args(savePlugin_args other) {
34912 if (other.isSetProjectName()) {
34913 this.projectName = other.projectName;
34914 }
34915 if (other.isSetPlugin()) {
34916 this.plugin = new Plugin(other.plugin);
34917 }
34918 }
34919
34920 public savePlugin_args deepCopy() {
34921 return new savePlugin_args(this);
34922 }
34923
34924 @Override
34925 public void clear() {
34926 this.projectName = null;
34927 this.plugin = null;
34928 }
34929
34930 public String getProjectName() {
34931 return this.projectName;
34932 }
34933
34934 public savePlugin_args setProjectName(String projectName) {
34935 this.projectName = projectName;
34936 return this;
34937 }
34938
34939 public void unsetProjectName() {
34940 this.projectName = null;
34941 }
34942
34943
34944 public boolean isSetProjectName() {
34945 return this.projectName != null;
34946 }
34947
34948 public void setProjectNameIsSet(boolean value) {
34949 if (!value) {
34950 this.projectName = null;
34951 }
34952 }
34953
34954 public Plugin getPlugin() {
34955 return this.plugin;
34956 }
34957
34958 public savePlugin_args setPlugin(Plugin plugin) {
34959 this.plugin = plugin;
34960 return this;
34961 }
34962
34963 public void unsetPlugin() {
34964 this.plugin = null;
34965 }
34966
34967
34968 public boolean isSetPlugin() {
34969 return this.plugin != null;
34970 }
34971
34972 public void setPluginIsSet(boolean value) {
34973 if (!value) {
34974 this.plugin = null;
34975 }
34976 }
34977
34978 public void setFieldValue(_Fields field, Object value) {
34979 switch (field) {
34980 case PROJECT_NAME:
34981 if (value == null) {
34982 unsetProjectName();
34983 } else {
34984 setProjectName((String)value);
34985 }
34986 break;
34987
34988 case PLUGIN:
34989 if (value == null) {
34990 unsetPlugin();
34991 } else {
34992 setPlugin((Plugin)value);
34993 }
34994 break;
34995
34996 }
34997 }
34998
34999 public Object getFieldValue(_Fields field) {
35000 switch (field) {
35001 case PROJECT_NAME:
35002 return getProjectName();
35003
35004 case PLUGIN:
35005 return getPlugin();
35006
35007 }
35008 throw new IllegalStateException();
35009 }
35010
35011
35012 public boolean isSet(_Fields field) {
35013 if (field == null) {
35014 throw new IllegalArgumentException();
35015 }
35016
35017 switch (field) {
35018 case PROJECT_NAME:
35019 return isSetProjectName();
35020 case PLUGIN:
35021 return isSetPlugin();
35022 }
35023 throw new IllegalStateException();
35024 }
35025
35026 @Override
35027 public boolean equals(Object that) {
35028 if (that == null)
35029 return false;
35030 if (that instanceof savePlugin_args)
35031 return this.equals((savePlugin_args)that);
35032 return false;
35033 }
35034
35035 public boolean equals(savePlugin_args that) {
35036 if (that == null)
35037 return false;
35038
35039 boolean this_present_projectName = true && this.isSetProjectName();
35040 boolean that_present_projectName = true && that.isSetProjectName();
35041 if (this_present_projectName || that_present_projectName) {
35042 if (!(this_present_projectName && that_present_projectName))
35043 return false;
35044 if (!this.projectName.equals(that.projectName))
35045 return false;
35046 }
35047
35048 boolean this_present_plugin = true && this.isSetPlugin();
35049 boolean that_present_plugin = true && that.isSetPlugin();
35050 if (this_present_plugin || that_present_plugin) {
35051 if (!(this_present_plugin && that_present_plugin))
35052 return false;
35053 if (!this.plugin.equals(that.plugin))
35054 return false;
35055 }
35056
35057 return true;
35058 }
35059
35060 @Override
35061 public int hashCode() {
35062 List<Object> list = new ArrayList<Object>();
35063
35064 boolean present_projectName = true && (isSetProjectName());
35065 list.add(present_projectName);
35066 if (present_projectName)
35067 list.add(projectName);
35068
35069 boolean present_plugin = true && (isSetPlugin());
35070 list.add(present_plugin);
35071 if (present_plugin)
35072 list.add(plugin);
35073
35074 return list.hashCode();
35075 }
35076
35077 @Override
35078 public int compareTo(savePlugin_args other) {
35079 if (!getClass().equals(other.getClass())) {
35080 return getClass().getName().compareTo(other.getClass().getName());
35081 }
35082
35083 int lastComparison = 0;
35084
35085 lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName());
35086 if (lastComparison != 0) {
35087 return lastComparison;
35088 }
35089 if (isSetProjectName()) {
35090 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName);
35091 if (lastComparison != 0) {
35092 return lastComparison;
35093 }
35094 }
35095 lastComparison = Boolean.valueOf(isSetPlugin()).compareTo(other.isSetPlugin());
35096 if (lastComparison != 0) {
35097 return lastComparison;
35098 }
35099 if (isSetPlugin()) {
35100 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.plugin, other.plugin);
35101 if (lastComparison != 0) {
35102 return lastComparison;
35103 }
35104 }
35105 return 0;
35106 }
35107
35108 public _Fields fieldForId(int fieldId) {
35109 return _Fields.findByThriftId(fieldId);
35110 }
35111
35112 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
35113 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
35114 }
35115
35116 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
35117 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
35118 }
35119
35120 @Override
35121 public String toString() {
35122 StringBuilder sb = new StringBuilder("savePlugin_args(");
35123 boolean first = true;
35124
35125 sb.append("projectName:");
35126 if (this.projectName == null) {
35127 sb.append("null");
35128 } else {
35129 sb.append(this.projectName);
35130 }
35131 first = false;
35132 if (!first) sb.append(", ");
35133 sb.append("plugin:");
35134 if (this.plugin == null) {
35135 sb.append("null");
35136 } else {
35137 sb.append(this.plugin);
35138 }
35139 first = false;
35140 sb.append(")");
35141 return sb.toString();
35142 }
35143
35144 public void validate() throws org.apache.thrift.TException {
35145
35146
35147 if (plugin != null) {
35148 plugin.validate();
35149 }
35150 }
35151
35152 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
35153 try {
35154 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
35155 } catch (org.apache.thrift.TException te) {
35156 throw new java.io.IOException(te);
35157 }
35158 }
35159
35160 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
35161 try {
35162 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
35163 } catch (org.apache.thrift.TException te) {
35164 throw new java.io.IOException(te);
35165 }
35166 }
35167
35168 private static class savePlugin_argsStandardSchemeFactory implements SchemeFactory {
35169 public savePlugin_argsStandardScheme getScheme() {
35170 return new savePlugin_argsStandardScheme();
35171 }
35172 }
35173
35174 private static class savePlugin_argsStandardScheme extends StandardScheme<savePlugin_args> {
35175
35176 public void read(org.apache.thrift.protocol.TProtocol iprot, savePlugin_args struct) throws org.apache.thrift.TException {
35177 org.apache.thrift.protocol.TField schemeField;
35178 iprot.readStructBegin();
35179 while (true)
35180 {
35181 schemeField = iprot.readFieldBegin();
35182 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
35183 break;
35184 }
35185 switch (schemeField.id) {
35186 case 1:
35187 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
35188 struct.projectName = iprot.readString();
35189 struct.setProjectNameIsSet(true);
35190 } else {
35191 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
35192 }
35193 break;
35194 case 2:
35195 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
35196 struct.plugin = new Plugin();
35197 struct.plugin.read(iprot);
35198 struct.setPluginIsSet(true);
35199 } else {
35200 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
35201 }
35202 break;
35203 default:
35204 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
35205 }
35206 iprot.readFieldEnd();
35207 }
35208 iprot.readStructEnd();
35209
35210
35211 struct.validate();
35212 }
35213
35214 public void write(org.apache.thrift.protocol.TProtocol oprot, savePlugin_args struct) throws org.apache.thrift.TException {
35215 struct.validate();
35216
35217 oprot.writeStructBegin(STRUCT_DESC);
35218 if (struct.projectName != null) {
35219 oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC);
35220 oprot.writeString(struct.projectName);
35221 oprot.writeFieldEnd();
35222 }
35223 if (struct.plugin != null) {
35224 oprot.writeFieldBegin(PLUGIN_FIELD_DESC);
35225 struct.plugin.write(oprot);
35226 oprot.writeFieldEnd();
35227 }
35228 oprot.writeFieldStop();
35229 oprot.writeStructEnd();
35230 }
35231
35232 }
35233
35234 private static class savePlugin_argsTupleSchemeFactory implements SchemeFactory {
35235 public savePlugin_argsTupleScheme getScheme() {
35236 return new savePlugin_argsTupleScheme();
35237 }
35238 }
35239
35240 private static class savePlugin_argsTupleScheme extends TupleScheme<savePlugin_args> {
35241
35242 @Override
35243 public void write(org.apache.thrift.protocol.TProtocol prot, savePlugin_args struct) throws org.apache.thrift.TException {
35244 TTupleProtocol oprot = (TTupleProtocol) prot;
35245 BitSet optionals = new BitSet();
35246 if (struct.isSetProjectName()) {
35247 optionals.set(0);
35248 }
35249 if (struct.isSetPlugin()) {
35250 optionals.set(1);
35251 }
35252 oprot.writeBitSet(optionals, 2);
35253 if (struct.isSetProjectName()) {
35254 oprot.writeString(struct.projectName);
35255 }
35256 if (struct.isSetPlugin()) {
35257 struct.plugin.write(oprot);
35258 }
35259 }
35260
35261 @Override
35262 public void read(org.apache.thrift.protocol.TProtocol prot, savePlugin_args struct) throws org.apache.thrift.TException {
35263 TTupleProtocol iprot = (TTupleProtocol) prot;
35264 BitSet incoming = iprot.readBitSet(2);
35265 if (incoming.get(0)) {
35266 struct.projectName = iprot.readString();
35267 struct.setProjectNameIsSet(true);
35268 }
35269 if (incoming.get(1)) {
35270 struct.plugin = new Plugin();
35271 struct.plugin.read(iprot);
35272 struct.setPluginIsSet(true);
35273 }
35274 }
35275 }
35276
35277 }
35278
35279 public static class savePlugin_result implements org.apache.thrift.TBase<savePlugin_result, savePlugin_result._Fields>, java.io.Serializable, Cloneable, Comparable<savePlugin_result> {
35280 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("savePlugin_result");
35281
35282 private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
35283
35284 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
35285 static {
35286 schemes.put(StandardScheme.class, new savePlugin_resultStandardSchemeFactory());
35287 schemes.put(TupleScheme.class, new savePlugin_resultTupleSchemeFactory());
35288 }
35289
35290 public CentralDogmaException e;
35291
35292
35293 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
35294 E((short)1, "e");
35295
35296 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
35297
35298 static {
35299 for (_Fields field : EnumSet.allOf(_Fields.class)) {
35300 byName.put(field.getFieldName(), field);
35301 }
35302 }
35303
35304
35305
35306
35307 public static _Fields findByThriftId(int fieldId) {
35308 switch(fieldId) {
35309 case 1:
35310 return E;
35311 default:
35312 return null;
35313 }
35314 }
35315
35316
35317
35318
35319
35320 public static _Fields findByThriftIdOrThrow(int fieldId) {
35321 _Fields fields = findByThriftId(fieldId);
35322 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
35323 return fields;
35324 }
35325
35326
35327
35328
35329 public static _Fields findByName(String name) {
35330 return byName.get(name);
35331 }
35332
35333 private final short _thriftId;
35334 private final String _fieldName;
35335
35336 _Fields(short thriftId, String fieldName) {
35337 _thriftId = thriftId;
35338 _fieldName = fieldName;
35339 }
35340
35341 public short getThriftFieldId() {
35342 return _thriftId;
35343 }
35344
35345 public String getFieldName() {
35346 return _fieldName;
35347 }
35348 }
35349
35350
35351 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
35352 static {
35353 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
35354 tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
35355 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
35356 metaDataMap = Collections.unmodifiableMap(tmpMap);
35357 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(savePlugin_result.class, metaDataMap);
35358 }
35359
35360 public savePlugin_result() {
35361 }
35362
35363 public savePlugin_result(
35364 CentralDogmaException e)
35365 {
35366 this();
35367 this.e = e;
35368 }
35369
35370
35371
35372
35373 public savePlugin_result(savePlugin_result other) {
35374 if (other.isSetE()) {
35375 this.e = new CentralDogmaException(other.e);
35376 }
35377 }
35378
35379 public savePlugin_result deepCopy() {
35380 return new savePlugin_result(this);
35381 }
35382
35383 @Override
35384 public void clear() {
35385 this.e = null;
35386 }
35387
35388 public CentralDogmaException getE() {
35389 return this.e;
35390 }
35391
35392 public savePlugin_result setE(CentralDogmaException e) {
35393 this.e = e;
35394 return this;
35395 }
35396
35397 public void unsetE() {
35398 this.e = null;
35399 }
35400
35401
35402 public boolean isSetE() {
35403 return this.e != null;
35404 }
35405
35406 public void setEIsSet(boolean value) {
35407 if (!value) {
35408 this.e = null;
35409 }
35410 }
35411
35412 public void setFieldValue(_Fields field, Object value) {
35413 switch (field) {
35414 case E:
35415 if (value == null) {
35416 unsetE();
35417 } else {
35418 setE((CentralDogmaException)value);
35419 }
35420 break;
35421
35422 }
35423 }
35424
35425 public Object getFieldValue(_Fields field) {
35426 switch (field) {
35427 case E:
35428 return getE();
35429
35430 }
35431 throw new IllegalStateException();
35432 }
35433
35434
35435 public boolean isSet(_Fields field) {
35436 if (field == null) {
35437 throw new IllegalArgumentException();
35438 }
35439
35440 switch (field) {
35441 case E:
35442 return isSetE();
35443 }
35444 throw new IllegalStateException();
35445 }
35446
35447 @Override
35448 public boolean equals(Object that) {
35449 if (that == null)
35450 return false;
35451 if (that instanceof savePlugin_result)
35452 return this.equals((savePlugin_result)that);
35453 return false;
35454 }
35455
35456 public boolean equals(savePlugin_result that) {
35457 if (that == null)
35458 return false;
35459
35460 boolean this_present_e = true && this.isSetE();
35461 boolean that_present_e = true && that.isSetE();
35462 if (this_present_e || that_present_e) {
35463 if (!(this_present_e && that_present_e))
35464 return false;
35465 if (!this.e.equals(that.e))
35466 return false;
35467 }
35468
35469 return true;
35470 }
35471
35472 @Override
35473 public int hashCode() {
35474 List<Object> list = new ArrayList<Object>();
35475
35476 boolean present_e = true && (isSetE());
35477 list.add(present_e);
35478 if (present_e)
35479 list.add(e);
35480
35481 return list.hashCode();
35482 }
35483
35484 @Override
35485 public int compareTo(savePlugin_result other) {
35486 if (!getClass().equals(other.getClass())) {
35487 return getClass().getName().compareTo(other.getClass().getName());
35488 }
35489
35490 int lastComparison = 0;
35491
35492 lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE());
35493 if (lastComparison != 0) {
35494 return lastComparison;
35495 }
35496 if (isSetE()) {
35497 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e);
35498 if (lastComparison != 0) {
35499 return lastComparison;
35500 }
35501 }
35502 return 0;
35503 }
35504
35505 public _Fields fieldForId(int fieldId) {
35506 return _Fields.findByThriftId(fieldId);
35507 }
35508
35509 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
35510 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
35511 }
35512
35513 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
35514 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
35515 }
35516
35517 @Override
35518 public String toString() {
35519 StringBuilder sb = new StringBuilder("savePlugin_result(");
35520 boolean first = true;
35521
35522 sb.append("e:");
35523 if (this.e == null) {
35524 sb.append("null");
35525 } else {
35526 sb.append(this.e);
35527 }
35528 first = false;
35529 sb.append(")");
35530 return sb.toString();
35531 }
35532
35533 public void validate() throws org.apache.thrift.TException {
35534
35535
35536 }
35537
35538 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
35539 try {
35540 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
35541 } catch (org.apache.thrift.TException te) {
35542 throw new java.io.IOException(te);
35543 }
35544 }
35545
35546 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
35547 try {
35548 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
35549 } catch (org.apache.thrift.TException te) {
35550 throw new java.io.IOException(te);
35551 }
35552 }
35553
35554 private static class savePlugin_resultStandardSchemeFactory implements SchemeFactory {
35555 public savePlugin_resultStandardScheme getScheme() {
35556 return new savePlugin_resultStandardScheme();
35557 }
35558 }
35559
35560 private static class savePlugin_resultStandardScheme extends StandardScheme<savePlugin_result> {
35561
35562 public void read(org.apache.thrift.protocol.TProtocol iprot, savePlugin_result struct) throws org.apache.thrift.TException {
35563 org.apache.thrift.protocol.TField schemeField;
35564 iprot.readStructBegin();
35565 while (true)
35566 {
35567 schemeField = iprot.readFieldBegin();
35568 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
35569 break;
35570 }
35571 switch (schemeField.id) {
35572 case 1:
35573 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
35574 struct.e = new CentralDogmaException();
35575 struct.e.read(iprot);
35576 struct.setEIsSet(true);
35577 } else {
35578 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
35579 }
35580 break;
35581 default:
35582 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
35583 }
35584 iprot.readFieldEnd();
35585 }
35586 iprot.readStructEnd();
35587
35588
35589 struct.validate();
35590 }
35591
35592 public void write(org.apache.thrift.protocol.TProtocol oprot, savePlugin_result struct) throws org.apache.thrift.TException {
35593 struct.validate();
35594
35595 oprot.writeStructBegin(STRUCT_DESC);
35596 if (struct.e != null) {
35597 oprot.writeFieldBegin(E_FIELD_DESC);
35598 struct.e.write(oprot);
35599 oprot.writeFieldEnd();
35600 }
35601 oprot.writeFieldStop();
35602 oprot.writeStructEnd();
35603 }
35604
35605 }
35606
35607 private static class savePlugin_resultTupleSchemeFactory implements SchemeFactory {
35608 public savePlugin_resultTupleScheme getScheme() {
35609 return new savePlugin_resultTupleScheme();
35610 }
35611 }
35612
35613 private static class savePlugin_resultTupleScheme extends TupleScheme<savePlugin_result> {
35614
35615 @Override
35616 public void write(org.apache.thrift.protocol.TProtocol prot, savePlugin_result struct) throws org.apache.thrift.TException {
35617 TTupleProtocol oprot = (TTupleProtocol) prot;
35618 BitSet optionals = new BitSet();
35619 if (struct.isSetE()) {
35620 optionals.set(0);
35621 }
35622 oprot.writeBitSet(optionals, 1);
35623 if (struct.isSetE()) {
35624 struct.e.write(oprot);
35625 }
35626 }
35627
35628 @Override
35629 public void read(org.apache.thrift.protocol.TProtocol prot, savePlugin_result struct) throws org.apache.thrift.TException {
35630 TTupleProtocol iprot = (TTupleProtocol) prot;
35631 BitSet incoming = iprot.readBitSet(1);
35632 if (incoming.get(0)) {
35633 struct.e = new CentralDogmaException();
35634 struct.e.read(iprot);
35635 struct.setEIsSet(true);
35636 }
35637 }
35638 }
35639
35640 }
35641
35642 public static class removePlugin_args implements org.apache.thrift.TBase<removePlugin_args, removePlugin_args._Fields>, java.io.Serializable, Cloneable, Comparable<removePlugin_args> {
35643 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("removePlugin_args");
35644
35645 private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)1);
35646 private static final org.apache.thrift.protocol.TField PLUGIN_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("pluginName", org.apache.thrift.protocol.TType.STRING, (short)2);
35647
35648 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
35649 static {
35650 schemes.put(StandardScheme.class, new removePlugin_argsStandardSchemeFactory());
35651 schemes.put(TupleScheme.class, new removePlugin_argsTupleSchemeFactory());
35652 }
35653
35654 public String projectName;
35655 public String pluginName;
35656
35657
35658 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
35659 PROJECT_NAME((short)1, "projectName"),
35660 PLUGIN_NAME((short)2, "pluginName");
35661
35662 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
35663
35664 static {
35665 for (_Fields field : EnumSet.allOf(_Fields.class)) {
35666 byName.put(field.getFieldName(), field);
35667 }
35668 }
35669
35670
35671
35672
35673 public static _Fields findByThriftId(int fieldId) {
35674 switch(fieldId) {
35675 case 1:
35676 return PROJECT_NAME;
35677 case 2:
35678 return PLUGIN_NAME;
35679 default:
35680 return null;
35681 }
35682 }
35683
35684
35685
35686
35687
35688 public static _Fields findByThriftIdOrThrow(int fieldId) {
35689 _Fields fields = findByThriftId(fieldId);
35690 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
35691 return fields;
35692 }
35693
35694
35695
35696
35697 public static _Fields findByName(String name) {
35698 return byName.get(name);
35699 }
35700
35701 private final short _thriftId;
35702 private final String _fieldName;
35703
35704 _Fields(short thriftId, String fieldName) {
35705 _thriftId = thriftId;
35706 _fieldName = fieldName;
35707 }
35708
35709 public short getThriftFieldId() {
35710 return _thriftId;
35711 }
35712
35713 public String getFieldName() {
35714 return _fieldName;
35715 }
35716 }
35717
35718
35719 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
35720 static {
35721 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
35722 tmpMap.put(_Fields.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", org.apache.thrift.TFieldRequirementType.DEFAULT,
35723 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
35724 tmpMap.put(_Fields.PLUGIN_NAME, new org.apache.thrift.meta_data.FieldMetaData("pluginName", org.apache.thrift.TFieldRequirementType.DEFAULT,
35725 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
35726 metaDataMap = Collections.unmodifiableMap(tmpMap);
35727 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(removePlugin_args.class, metaDataMap);
35728 }
35729
35730 public removePlugin_args() {
35731 }
35732
35733 public removePlugin_args(
35734 String projectName,
35735 String pluginName)
35736 {
35737 this();
35738 this.projectName = projectName;
35739 this.pluginName = pluginName;
35740 }
35741
35742
35743
35744
35745 public removePlugin_args(removePlugin_args other) {
35746 if (other.isSetProjectName()) {
35747 this.projectName = other.projectName;
35748 }
35749 if (other.isSetPluginName()) {
35750 this.pluginName = other.pluginName;
35751 }
35752 }
35753
35754 public removePlugin_args deepCopy() {
35755 return new removePlugin_args(this);
35756 }
35757
35758 @Override
35759 public void clear() {
35760 this.projectName = null;
35761 this.pluginName = null;
35762 }
35763
35764 public String getProjectName() {
35765 return this.projectName;
35766 }
35767
35768 public removePlugin_args setProjectName(String projectName) {
35769 this.projectName = projectName;
35770 return this;
35771 }
35772
35773 public void unsetProjectName() {
35774 this.projectName = null;
35775 }
35776
35777
35778 public boolean isSetProjectName() {
35779 return this.projectName != null;
35780 }
35781
35782 public void setProjectNameIsSet(boolean value) {
35783 if (!value) {
35784 this.projectName = null;
35785 }
35786 }
35787
35788 public String getPluginName() {
35789 return this.pluginName;
35790 }
35791
35792 public removePlugin_args setPluginName(String pluginName) {
35793 this.pluginName = pluginName;
35794 return this;
35795 }
35796
35797 public void unsetPluginName() {
35798 this.pluginName = null;
35799 }
35800
35801
35802 public boolean isSetPluginName() {
35803 return this.pluginName != null;
35804 }
35805
35806 public void setPluginNameIsSet(boolean value) {
35807 if (!value) {
35808 this.pluginName = null;
35809 }
35810 }
35811
35812 public void setFieldValue(_Fields field, Object value) {
35813 switch (field) {
35814 case PROJECT_NAME:
35815 if (value == null) {
35816 unsetProjectName();
35817 } else {
35818 setProjectName((String)value);
35819 }
35820 break;
35821
35822 case PLUGIN_NAME:
35823 if (value == null) {
35824 unsetPluginName();
35825 } else {
35826 setPluginName((String)value);
35827 }
35828 break;
35829
35830 }
35831 }
35832
35833 public Object getFieldValue(_Fields field) {
35834 switch (field) {
35835 case PROJECT_NAME:
35836 return getProjectName();
35837
35838 case PLUGIN_NAME:
35839 return getPluginName();
35840
35841 }
35842 throw new IllegalStateException();
35843 }
35844
35845
35846 public boolean isSet(_Fields field) {
35847 if (field == null) {
35848 throw new IllegalArgumentException();
35849 }
35850
35851 switch (field) {
35852 case PROJECT_NAME:
35853 return isSetProjectName();
35854 case PLUGIN_NAME:
35855 return isSetPluginName();
35856 }
35857 throw new IllegalStateException();
35858 }
35859
35860 @Override
35861 public boolean equals(Object that) {
35862 if (that == null)
35863 return false;
35864 if (that instanceof removePlugin_args)
35865 return this.equals((removePlugin_args)that);
35866 return false;
35867 }
35868
35869 public boolean equals(removePlugin_args that) {
35870 if (that == null)
35871 return false;
35872
35873 boolean this_present_projectName = true && this.isSetProjectName();
35874 boolean that_present_projectName = true && that.isSetProjectName();
35875 if (this_present_projectName || that_present_projectName) {
35876 if (!(this_present_projectName && that_present_projectName))
35877 return false;
35878 if (!this.projectName.equals(that.projectName))
35879 return false;
35880 }
35881
35882 boolean this_present_pluginName = true && this.isSetPluginName();
35883 boolean that_present_pluginName = true && that.isSetPluginName();
35884 if (this_present_pluginName || that_present_pluginName) {
35885 if (!(this_present_pluginName && that_present_pluginName))
35886 return false;
35887 if (!this.pluginName.equals(that.pluginName))
35888 return false;
35889 }
35890
35891 return true;
35892 }
35893
35894 @Override
35895 public int hashCode() {
35896 List<Object> list = new ArrayList<Object>();
35897
35898 boolean present_projectName = true && (isSetProjectName());
35899 list.add(present_projectName);
35900 if (present_projectName)
35901 list.add(projectName);
35902
35903 boolean present_pluginName = true && (isSetPluginName());
35904 list.add(present_pluginName);
35905 if (present_pluginName)
35906 list.add(pluginName);
35907
35908 return list.hashCode();
35909 }
35910
35911 @Override
35912 public int compareTo(removePlugin_args other) {
35913 if (!getClass().equals(other.getClass())) {
35914 return getClass().getName().compareTo(other.getClass().getName());
35915 }
35916
35917 int lastComparison = 0;
35918
35919 lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName());
35920 if (lastComparison != 0) {
35921 return lastComparison;
35922 }
35923 if (isSetProjectName()) {
35924 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName);
35925 if (lastComparison != 0) {
35926 return lastComparison;
35927 }
35928 }
35929 lastComparison = Boolean.valueOf(isSetPluginName()).compareTo(other.isSetPluginName());
35930 if (lastComparison != 0) {
35931 return lastComparison;
35932 }
35933 if (isSetPluginName()) {
35934 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pluginName, other.pluginName);
35935 if (lastComparison != 0) {
35936 return lastComparison;
35937 }
35938 }
35939 return 0;
35940 }
35941
35942 public _Fields fieldForId(int fieldId) {
35943 return _Fields.findByThriftId(fieldId);
35944 }
35945
35946 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
35947 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
35948 }
35949
35950 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
35951 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
35952 }
35953
35954 @Override
35955 public String toString() {
35956 StringBuilder sb = new StringBuilder("removePlugin_args(");
35957 boolean first = true;
35958
35959 sb.append("projectName:");
35960 if (this.projectName == null) {
35961 sb.append("null");
35962 } else {
35963 sb.append(this.projectName);
35964 }
35965 first = false;
35966 if (!first) sb.append(", ");
35967 sb.append("pluginName:");
35968 if (this.pluginName == null) {
35969 sb.append("null");
35970 } else {
35971 sb.append(this.pluginName);
35972 }
35973 first = false;
35974 sb.append(")");
35975 return sb.toString();
35976 }
35977
35978 public void validate() throws org.apache.thrift.TException {
35979
35980
35981 }
35982
35983 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
35984 try {
35985 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
35986 } catch (org.apache.thrift.TException te) {
35987 throw new java.io.IOException(te);
35988 }
35989 }
35990
35991 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
35992 try {
35993 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
35994 } catch (org.apache.thrift.TException te) {
35995 throw new java.io.IOException(te);
35996 }
35997 }
35998
35999 private static class removePlugin_argsStandardSchemeFactory implements SchemeFactory {
36000 public removePlugin_argsStandardScheme getScheme() {
36001 return new removePlugin_argsStandardScheme();
36002 }
36003 }
36004
36005 private static class removePlugin_argsStandardScheme extends StandardScheme<removePlugin_args> {
36006
36007 public void read(org.apache.thrift.protocol.TProtocol iprot, removePlugin_args struct) throws org.apache.thrift.TException {
36008 org.apache.thrift.protocol.TField schemeField;
36009 iprot.readStructBegin();
36010 while (true)
36011 {
36012 schemeField = iprot.readFieldBegin();
36013 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
36014 break;
36015 }
36016 switch (schemeField.id) {
36017 case 1:
36018 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
36019 struct.projectName = iprot.readString();
36020 struct.setProjectNameIsSet(true);
36021 } else {
36022 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
36023 }
36024 break;
36025 case 2:
36026 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
36027 struct.pluginName = iprot.readString();
36028 struct.setPluginNameIsSet(true);
36029 } else {
36030 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
36031 }
36032 break;
36033 default:
36034 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
36035 }
36036 iprot.readFieldEnd();
36037 }
36038 iprot.readStructEnd();
36039
36040
36041 struct.validate();
36042 }
36043
36044 public void write(org.apache.thrift.protocol.TProtocol oprot, removePlugin_args struct) throws org.apache.thrift.TException {
36045 struct.validate();
36046
36047 oprot.writeStructBegin(STRUCT_DESC);
36048 if (struct.projectName != null) {
36049 oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC);
36050 oprot.writeString(struct.projectName);
36051 oprot.writeFieldEnd();
36052 }
36053 if (struct.pluginName != null) {
36054 oprot.writeFieldBegin(PLUGIN_NAME_FIELD_DESC);
36055 oprot.writeString(struct.pluginName);
36056 oprot.writeFieldEnd();
36057 }
36058 oprot.writeFieldStop();
36059 oprot.writeStructEnd();
36060 }
36061
36062 }
36063
36064 private static class removePlugin_argsTupleSchemeFactory implements SchemeFactory {
36065 public removePlugin_argsTupleScheme getScheme() {
36066 return new removePlugin_argsTupleScheme();
36067 }
36068 }
36069
36070 private static class removePlugin_argsTupleScheme extends TupleScheme<removePlugin_args> {
36071
36072 @Override
36073 public void write(org.apache.thrift.protocol.TProtocol prot, removePlugin_args struct) throws org.apache.thrift.TException {
36074 TTupleProtocol oprot = (TTupleProtocol) prot;
36075 BitSet optionals = new BitSet();
36076 if (struct.isSetProjectName()) {
36077 optionals.set(0);
36078 }
36079 if (struct.isSetPluginName()) {
36080 optionals.set(1);
36081 }
36082 oprot.writeBitSet(optionals, 2);
36083 if (struct.isSetProjectName()) {
36084 oprot.writeString(struct.projectName);
36085 }
36086 if (struct.isSetPluginName()) {
36087 oprot.writeString(struct.pluginName);
36088 }
36089 }
36090
36091 @Override
36092 public void read(org.apache.thrift.protocol.TProtocol prot, removePlugin_args struct) throws org.apache.thrift.TException {
36093 TTupleProtocol iprot = (TTupleProtocol) prot;
36094 BitSet incoming = iprot.readBitSet(2);
36095 if (incoming.get(0)) {
36096 struct.projectName = iprot.readString();
36097 struct.setProjectNameIsSet(true);
36098 }
36099 if (incoming.get(1)) {
36100 struct.pluginName = iprot.readString();
36101 struct.setPluginNameIsSet(true);
36102 }
36103 }
36104 }
36105
36106 }
36107
36108 public static class removePlugin_result implements org.apache.thrift.TBase<removePlugin_result, removePlugin_result._Fields>, java.io.Serializable, Cloneable, Comparable<removePlugin_result> {
36109 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("removePlugin_result");
36110
36111 private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
36112
36113 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
36114 static {
36115 schemes.put(StandardScheme.class, new removePlugin_resultStandardSchemeFactory());
36116 schemes.put(TupleScheme.class, new removePlugin_resultTupleSchemeFactory());
36117 }
36118
36119 public CentralDogmaException e;
36120
36121
36122 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
36123 E((short)1, "e");
36124
36125 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
36126
36127 static {
36128 for (_Fields field : EnumSet.allOf(_Fields.class)) {
36129 byName.put(field.getFieldName(), field);
36130 }
36131 }
36132
36133
36134
36135
36136 public static _Fields findByThriftId(int fieldId) {
36137 switch(fieldId) {
36138 case 1:
36139 return E;
36140 default:
36141 return null;
36142 }
36143 }
36144
36145
36146
36147
36148
36149 public static _Fields findByThriftIdOrThrow(int fieldId) {
36150 _Fields fields = findByThriftId(fieldId);
36151 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
36152 return fields;
36153 }
36154
36155
36156
36157
36158 public static _Fields findByName(String name) {
36159 return byName.get(name);
36160 }
36161
36162 private final short _thriftId;
36163 private final String _fieldName;
36164
36165 _Fields(short thriftId, String fieldName) {
36166 _thriftId = thriftId;
36167 _fieldName = fieldName;
36168 }
36169
36170 public short getThriftFieldId() {
36171 return _thriftId;
36172 }
36173
36174 public String getFieldName() {
36175 return _fieldName;
36176 }
36177 }
36178
36179
36180 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
36181 static {
36182 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
36183 tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
36184 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
36185 metaDataMap = Collections.unmodifiableMap(tmpMap);
36186 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(removePlugin_result.class, metaDataMap);
36187 }
36188
36189 public removePlugin_result() {
36190 }
36191
36192 public removePlugin_result(
36193 CentralDogmaException e)
36194 {
36195 this();
36196 this.e = e;
36197 }
36198
36199
36200
36201
36202 public removePlugin_result(removePlugin_result other) {
36203 if (other.isSetE()) {
36204 this.e = new CentralDogmaException(other.e);
36205 }
36206 }
36207
36208 public removePlugin_result deepCopy() {
36209 return new removePlugin_result(this);
36210 }
36211
36212 @Override
36213 public void clear() {
36214 this.e = null;
36215 }
36216
36217 public CentralDogmaException getE() {
36218 return this.e;
36219 }
36220
36221 public removePlugin_result setE(CentralDogmaException e) {
36222 this.e = e;
36223 return this;
36224 }
36225
36226 public void unsetE() {
36227 this.e = null;
36228 }
36229
36230
36231 public boolean isSetE() {
36232 return this.e != null;
36233 }
36234
36235 public void setEIsSet(boolean value) {
36236 if (!value) {
36237 this.e = null;
36238 }
36239 }
36240
36241 public void setFieldValue(_Fields field, Object value) {
36242 switch (field) {
36243 case E:
36244 if (value == null) {
36245 unsetE();
36246 } else {
36247 setE((CentralDogmaException)value);
36248 }
36249 break;
36250
36251 }
36252 }
36253
36254 public Object getFieldValue(_Fields field) {
36255 switch (field) {
36256 case E:
36257 return getE();
36258
36259 }
36260 throw new IllegalStateException();
36261 }
36262
36263
36264 public boolean isSet(_Fields field) {
36265 if (field == null) {
36266 throw new IllegalArgumentException();
36267 }
36268
36269 switch (field) {
36270 case E:
36271 return isSetE();
36272 }
36273 throw new IllegalStateException();
36274 }
36275
36276 @Override
36277 public boolean equals(Object that) {
36278 if (that == null)
36279 return false;
36280 if (that instanceof removePlugin_result)
36281 return this.equals((removePlugin_result)that);
36282 return false;
36283 }
36284
36285 public boolean equals(removePlugin_result that) {
36286 if (that == null)
36287 return false;
36288
36289 boolean this_present_e = true && this.isSetE();
36290 boolean that_present_e = true && that.isSetE();
36291 if (this_present_e || that_present_e) {
36292 if (!(this_present_e && that_present_e))
36293 return false;
36294 if (!this.e.equals(that.e))
36295 return false;
36296 }
36297
36298 return true;
36299 }
36300
36301 @Override
36302 public int hashCode() {
36303 List<Object> list = new ArrayList<Object>();
36304
36305 boolean present_e = true && (isSetE());
36306 list.add(present_e);
36307 if (present_e)
36308 list.add(e);
36309
36310 return list.hashCode();
36311 }
36312
36313 @Override
36314 public int compareTo(removePlugin_result other) {
36315 if (!getClass().equals(other.getClass())) {
36316 return getClass().getName().compareTo(other.getClass().getName());
36317 }
36318
36319 int lastComparison = 0;
36320
36321 lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE());
36322 if (lastComparison != 0) {
36323 return lastComparison;
36324 }
36325 if (isSetE()) {
36326 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e);
36327 if (lastComparison != 0) {
36328 return lastComparison;
36329 }
36330 }
36331 return 0;
36332 }
36333
36334 public _Fields fieldForId(int fieldId) {
36335 return _Fields.findByThriftId(fieldId);
36336 }
36337
36338 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
36339 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
36340 }
36341
36342 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
36343 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
36344 }
36345
36346 @Override
36347 public String toString() {
36348 StringBuilder sb = new StringBuilder("removePlugin_result(");
36349 boolean first = true;
36350
36351 sb.append("e:");
36352 if (this.e == null) {
36353 sb.append("null");
36354 } else {
36355 sb.append(this.e);
36356 }
36357 first = false;
36358 sb.append(")");
36359 return sb.toString();
36360 }
36361
36362 public void validate() throws org.apache.thrift.TException {
36363
36364
36365 }
36366
36367 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
36368 try {
36369 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
36370 } catch (org.apache.thrift.TException te) {
36371 throw new java.io.IOException(te);
36372 }
36373 }
36374
36375 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
36376 try {
36377 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
36378 } catch (org.apache.thrift.TException te) {
36379 throw new java.io.IOException(te);
36380 }
36381 }
36382
36383 private static class removePlugin_resultStandardSchemeFactory implements SchemeFactory {
36384 public removePlugin_resultStandardScheme getScheme() {
36385 return new removePlugin_resultStandardScheme();
36386 }
36387 }
36388
36389 private static class removePlugin_resultStandardScheme extends StandardScheme<removePlugin_result> {
36390
36391 public void read(org.apache.thrift.protocol.TProtocol iprot, removePlugin_result struct) throws org.apache.thrift.TException {
36392 org.apache.thrift.protocol.TField schemeField;
36393 iprot.readStructBegin();
36394 while (true)
36395 {
36396 schemeField = iprot.readFieldBegin();
36397 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
36398 break;
36399 }
36400 switch (schemeField.id) {
36401 case 1:
36402 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
36403 struct.e = new CentralDogmaException();
36404 struct.e.read(iprot);
36405 struct.setEIsSet(true);
36406 } else {
36407 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
36408 }
36409 break;
36410 default:
36411 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
36412 }
36413 iprot.readFieldEnd();
36414 }
36415 iprot.readStructEnd();
36416
36417
36418 struct.validate();
36419 }
36420
36421 public void write(org.apache.thrift.protocol.TProtocol oprot, removePlugin_result struct) throws org.apache.thrift.TException {
36422 struct.validate();
36423
36424 oprot.writeStructBegin(STRUCT_DESC);
36425 if (struct.e != null) {
36426 oprot.writeFieldBegin(E_FIELD_DESC);
36427 struct.e.write(oprot);
36428 oprot.writeFieldEnd();
36429 }
36430 oprot.writeFieldStop();
36431 oprot.writeStructEnd();
36432 }
36433
36434 }
36435
36436 private static class removePlugin_resultTupleSchemeFactory implements SchemeFactory {
36437 public removePlugin_resultTupleScheme getScheme() {
36438 return new removePlugin_resultTupleScheme();
36439 }
36440 }
36441
36442 private static class removePlugin_resultTupleScheme extends TupleScheme<removePlugin_result> {
36443
36444 @Override
36445 public void write(org.apache.thrift.protocol.TProtocol prot, removePlugin_result struct) throws org.apache.thrift.TException {
36446 TTupleProtocol oprot = (TTupleProtocol) prot;
36447 BitSet optionals = new BitSet();
36448 if (struct.isSetE()) {
36449 optionals.set(0);
36450 }
36451 oprot.writeBitSet(optionals, 1);
36452 if (struct.isSetE()) {
36453 struct.e.write(oprot);
36454 }
36455 }
36456
36457 @Override
36458 public void read(org.apache.thrift.protocol.TProtocol prot, removePlugin_result struct) throws org.apache.thrift.TException {
36459 TTupleProtocol iprot = (TTupleProtocol) prot;
36460 BitSet incoming = iprot.readBitSet(1);
36461 if (incoming.get(0)) {
36462 struct.e = new CentralDogmaException();
36463 struct.e.read(iprot);
36464 struct.setEIsSet(true);
36465 }
36466 }
36467 }
36468
36469 }
36470
36471 public static class listPlugins_args implements org.apache.thrift.TBase<listPlugins_args, listPlugins_args._Fields>, java.io.Serializable, Cloneable, Comparable<listPlugins_args> {
36472 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("listPlugins_args");
36473
36474 private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)1);
36475
36476 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
36477 static {
36478 schemes.put(StandardScheme.class, new listPlugins_argsStandardSchemeFactory());
36479 schemes.put(TupleScheme.class, new listPlugins_argsTupleSchemeFactory());
36480 }
36481
36482 public String projectName;
36483
36484
36485 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
36486 PROJECT_NAME((short)1, "projectName");
36487
36488 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
36489
36490 static {
36491 for (_Fields field : EnumSet.allOf(_Fields.class)) {
36492 byName.put(field.getFieldName(), field);
36493 }
36494 }
36495
36496
36497
36498
36499 public static _Fields findByThriftId(int fieldId) {
36500 switch(fieldId) {
36501 case 1:
36502 return PROJECT_NAME;
36503 default:
36504 return null;
36505 }
36506 }
36507
36508
36509
36510
36511
36512 public static _Fields findByThriftIdOrThrow(int fieldId) {
36513 _Fields fields = findByThriftId(fieldId);
36514 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
36515 return fields;
36516 }
36517
36518
36519
36520
36521 public static _Fields findByName(String name) {
36522 return byName.get(name);
36523 }
36524
36525 private final short _thriftId;
36526 private final String _fieldName;
36527
36528 _Fields(short thriftId, String fieldName) {
36529 _thriftId = thriftId;
36530 _fieldName = fieldName;
36531 }
36532
36533 public short getThriftFieldId() {
36534 return _thriftId;
36535 }
36536
36537 public String getFieldName() {
36538 return _fieldName;
36539 }
36540 }
36541
36542
36543 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
36544 static {
36545 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
36546 tmpMap.put(_Fields.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", org.apache.thrift.TFieldRequirementType.DEFAULT,
36547 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
36548 metaDataMap = Collections.unmodifiableMap(tmpMap);
36549 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(listPlugins_args.class, metaDataMap);
36550 }
36551
36552 public listPlugins_args() {
36553 }
36554
36555 public listPlugins_args(
36556 String projectName)
36557 {
36558 this();
36559 this.projectName = projectName;
36560 }
36561
36562
36563
36564
36565 public listPlugins_args(listPlugins_args other) {
36566 if (other.isSetProjectName()) {
36567 this.projectName = other.projectName;
36568 }
36569 }
36570
36571 public listPlugins_args deepCopy() {
36572 return new listPlugins_args(this);
36573 }
36574
36575 @Override
36576 public void clear() {
36577 this.projectName = null;
36578 }
36579
36580 public String getProjectName() {
36581 return this.projectName;
36582 }
36583
36584 public listPlugins_args setProjectName(String projectName) {
36585 this.projectName = projectName;
36586 return this;
36587 }
36588
36589 public void unsetProjectName() {
36590 this.projectName = null;
36591 }
36592
36593
36594 public boolean isSetProjectName() {
36595 return this.projectName != null;
36596 }
36597
36598 public void setProjectNameIsSet(boolean value) {
36599 if (!value) {
36600 this.projectName = null;
36601 }
36602 }
36603
36604 public void setFieldValue(_Fields field, Object value) {
36605 switch (field) {
36606 case PROJECT_NAME:
36607 if (value == null) {
36608 unsetProjectName();
36609 } else {
36610 setProjectName((String)value);
36611 }
36612 break;
36613
36614 }
36615 }
36616
36617 public Object getFieldValue(_Fields field) {
36618 switch (field) {
36619 case PROJECT_NAME:
36620 return getProjectName();
36621
36622 }
36623 throw new IllegalStateException();
36624 }
36625
36626
36627 public boolean isSet(_Fields field) {
36628 if (field == null) {
36629 throw new IllegalArgumentException();
36630 }
36631
36632 switch (field) {
36633 case PROJECT_NAME:
36634 return isSetProjectName();
36635 }
36636 throw new IllegalStateException();
36637 }
36638
36639 @Override
36640 public boolean equals(Object that) {
36641 if (that == null)
36642 return false;
36643 if (that instanceof listPlugins_args)
36644 return this.equals((listPlugins_args)that);
36645 return false;
36646 }
36647
36648 public boolean equals(listPlugins_args that) {
36649 if (that == null)
36650 return false;
36651
36652 boolean this_present_projectName = true && this.isSetProjectName();
36653 boolean that_present_projectName = true && that.isSetProjectName();
36654 if (this_present_projectName || that_present_projectName) {
36655 if (!(this_present_projectName && that_present_projectName))
36656 return false;
36657 if (!this.projectName.equals(that.projectName))
36658 return false;
36659 }
36660
36661 return true;
36662 }
36663
36664 @Override
36665 public int hashCode() {
36666 List<Object> list = new ArrayList<Object>();
36667
36668 boolean present_projectName = true && (isSetProjectName());
36669 list.add(present_projectName);
36670 if (present_projectName)
36671 list.add(projectName);
36672
36673 return list.hashCode();
36674 }
36675
36676 @Override
36677 public int compareTo(listPlugins_args other) {
36678 if (!getClass().equals(other.getClass())) {
36679 return getClass().getName().compareTo(other.getClass().getName());
36680 }
36681
36682 int lastComparison = 0;
36683
36684 lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName());
36685 if (lastComparison != 0) {
36686 return lastComparison;
36687 }
36688 if (isSetProjectName()) {
36689 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName);
36690 if (lastComparison != 0) {
36691 return lastComparison;
36692 }
36693 }
36694 return 0;
36695 }
36696
36697 public _Fields fieldForId(int fieldId) {
36698 return _Fields.findByThriftId(fieldId);
36699 }
36700
36701 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
36702 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
36703 }
36704
36705 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
36706 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
36707 }
36708
36709 @Override
36710 public String toString() {
36711 StringBuilder sb = new StringBuilder("listPlugins_args(");
36712 boolean first = true;
36713
36714 sb.append("projectName:");
36715 if (this.projectName == null) {
36716 sb.append("null");
36717 } else {
36718 sb.append(this.projectName);
36719 }
36720 first = false;
36721 sb.append(")");
36722 return sb.toString();
36723 }
36724
36725 public void validate() throws org.apache.thrift.TException {
36726
36727
36728 }
36729
36730 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
36731 try {
36732 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
36733 } catch (org.apache.thrift.TException te) {
36734 throw new java.io.IOException(te);
36735 }
36736 }
36737
36738 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
36739 try {
36740 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
36741 } catch (org.apache.thrift.TException te) {
36742 throw new java.io.IOException(te);
36743 }
36744 }
36745
36746 private static class listPlugins_argsStandardSchemeFactory implements SchemeFactory {
36747 public listPlugins_argsStandardScheme getScheme() {
36748 return new listPlugins_argsStandardScheme();
36749 }
36750 }
36751
36752 private static class listPlugins_argsStandardScheme extends StandardScheme<listPlugins_args> {
36753
36754 public void read(org.apache.thrift.protocol.TProtocol iprot, listPlugins_args struct) throws org.apache.thrift.TException {
36755 org.apache.thrift.protocol.TField schemeField;
36756 iprot.readStructBegin();
36757 while (true)
36758 {
36759 schemeField = iprot.readFieldBegin();
36760 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
36761 break;
36762 }
36763 switch (schemeField.id) {
36764 case 1:
36765 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
36766 struct.projectName = iprot.readString();
36767 struct.setProjectNameIsSet(true);
36768 } else {
36769 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
36770 }
36771 break;
36772 default:
36773 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
36774 }
36775 iprot.readFieldEnd();
36776 }
36777 iprot.readStructEnd();
36778
36779
36780 struct.validate();
36781 }
36782
36783 public void write(org.apache.thrift.protocol.TProtocol oprot, listPlugins_args struct) throws org.apache.thrift.TException {
36784 struct.validate();
36785
36786 oprot.writeStructBegin(STRUCT_DESC);
36787 if (struct.projectName != null) {
36788 oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC);
36789 oprot.writeString(struct.projectName);
36790 oprot.writeFieldEnd();
36791 }
36792 oprot.writeFieldStop();
36793 oprot.writeStructEnd();
36794 }
36795
36796 }
36797
36798 private static class listPlugins_argsTupleSchemeFactory implements SchemeFactory {
36799 public listPlugins_argsTupleScheme getScheme() {
36800 return new listPlugins_argsTupleScheme();
36801 }
36802 }
36803
36804 private static class listPlugins_argsTupleScheme extends TupleScheme<listPlugins_args> {
36805
36806 @Override
36807 public void write(org.apache.thrift.protocol.TProtocol prot, listPlugins_args struct) throws org.apache.thrift.TException {
36808 TTupleProtocol oprot = (TTupleProtocol) prot;
36809 BitSet optionals = new BitSet();
36810 if (struct.isSetProjectName()) {
36811 optionals.set(0);
36812 }
36813 oprot.writeBitSet(optionals, 1);
36814 if (struct.isSetProjectName()) {
36815 oprot.writeString(struct.projectName);
36816 }
36817 }
36818
36819 @Override
36820 public void read(org.apache.thrift.protocol.TProtocol prot, listPlugins_args struct) throws org.apache.thrift.TException {
36821 TTupleProtocol iprot = (TTupleProtocol) prot;
36822 BitSet incoming = iprot.readBitSet(1);
36823 if (incoming.get(0)) {
36824 struct.projectName = iprot.readString();
36825 struct.setProjectNameIsSet(true);
36826 }
36827 }
36828 }
36829
36830 }
36831
36832 public static class listPlugins_result implements org.apache.thrift.TBase<listPlugins_result, listPlugins_result._Fields>, java.io.Serializable, Cloneable, Comparable<listPlugins_result> {
36833 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("listPlugins_result");
36834
36835 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
36836 private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
36837
36838 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
36839 static {
36840 schemes.put(StandardScheme.class, new listPlugins_resultStandardSchemeFactory());
36841 schemes.put(TupleScheme.class, new listPlugins_resultTupleSchemeFactory());
36842 }
36843
36844 public List<Plugin> success;
36845 public CentralDogmaException e;
36846
36847
36848 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
36849 SUCCESS((short)0, "success"),
36850 E((short)1, "e");
36851
36852 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
36853
36854 static {
36855 for (_Fields field : EnumSet.allOf(_Fields.class)) {
36856 byName.put(field.getFieldName(), field);
36857 }
36858 }
36859
36860
36861
36862
36863 public static _Fields findByThriftId(int fieldId) {
36864 switch(fieldId) {
36865 case 0:
36866 return SUCCESS;
36867 case 1:
36868 return E;
36869 default:
36870 return null;
36871 }
36872 }
36873
36874
36875
36876
36877
36878 public static _Fields findByThriftIdOrThrow(int fieldId) {
36879 _Fields fields = findByThriftId(fieldId);
36880 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
36881 return fields;
36882 }
36883
36884
36885
36886
36887 public static _Fields findByName(String name) {
36888 return byName.get(name);
36889 }
36890
36891 private final short _thriftId;
36892 private final String _fieldName;
36893
36894 _Fields(short thriftId, String fieldName) {
36895 _thriftId = thriftId;
36896 _fieldName = fieldName;
36897 }
36898
36899 public short getThriftFieldId() {
36900 return _thriftId;
36901 }
36902
36903 public String getFieldName() {
36904 return _fieldName;
36905 }
36906 }
36907
36908
36909 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
36910 static {
36911 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
36912 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
36913 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
36914 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Plugin.class))));
36915 tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
36916 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
36917 metaDataMap = Collections.unmodifiableMap(tmpMap);
36918 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(listPlugins_result.class, metaDataMap);
36919 }
36920
36921 public listPlugins_result() {
36922 }
36923
36924 public listPlugins_result(
36925 List<Plugin> success,
36926 CentralDogmaException e)
36927 {
36928 this();
36929 this.success = success;
36930 this.e = e;
36931 }
36932
36933
36934
36935
36936 public listPlugins_result(listPlugins_result other) {
36937 if (other.isSetSuccess()) {
36938 List<Plugin> __this__success = new ArrayList<Plugin>(other.success.size());
36939 for (Plugin other_element : other.success) {
36940 __this__success.add(new Plugin(other_element));
36941 }
36942 this.success = __this__success;
36943 }
36944 if (other.isSetE()) {
36945 this.e = new CentralDogmaException(other.e);
36946 }
36947 }
36948
36949 public listPlugins_result deepCopy() {
36950 return new listPlugins_result(this);
36951 }
36952
36953 @Override
36954 public void clear() {
36955 this.success = null;
36956 this.e = null;
36957 }
36958
36959 public int getSuccessSize() {
36960 return (this.success == null) ? 0 : this.success.size();
36961 }
36962
36963 public java.util.Iterator<Plugin> getSuccessIterator() {
36964 return (this.success == null) ? null : this.success.iterator();
36965 }
36966
36967 public void addToSuccess(Plugin elem) {
36968 if (this.success == null) {
36969 this.success = new ArrayList<Plugin>();
36970 }
36971 this.success.add(elem);
36972 }
36973
36974 public List<Plugin> getSuccess() {
36975 return this.success;
36976 }
36977
36978 public listPlugins_result setSuccess(List<Plugin> success) {
36979 this.success = success;
36980 return this;
36981 }
36982
36983 public void unsetSuccess() {
36984 this.success = null;
36985 }
36986
36987
36988 public boolean isSetSuccess() {
36989 return this.success != null;
36990 }
36991
36992 public void setSuccessIsSet(boolean value) {
36993 if (!value) {
36994 this.success = null;
36995 }
36996 }
36997
36998 public CentralDogmaException getE() {
36999 return this.e;
37000 }
37001
37002 public listPlugins_result setE(CentralDogmaException e) {
37003 this.e = e;
37004 return this;
37005 }
37006
37007 public void unsetE() {
37008 this.e = null;
37009 }
37010
37011
37012 public boolean isSetE() {
37013 return this.e != null;
37014 }
37015
37016 public void setEIsSet(boolean value) {
37017 if (!value) {
37018 this.e = null;
37019 }
37020 }
37021
37022 public void setFieldValue(_Fields field, Object value) {
37023 switch (field) {
37024 case SUCCESS:
37025 if (value == null) {
37026 unsetSuccess();
37027 } else {
37028 setSuccess((List<Plugin>)value);
37029 }
37030 break;
37031
37032 case E:
37033 if (value == null) {
37034 unsetE();
37035 } else {
37036 setE((CentralDogmaException)value);
37037 }
37038 break;
37039
37040 }
37041 }
37042
37043 public Object getFieldValue(_Fields field) {
37044 switch (field) {
37045 case SUCCESS:
37046 return getSuccess();
37047
37048 case E:
37049 return getE();
37050
37051 }
37052 throw new IllegalStateException();
37053 }
37054
37055
37056 public boolean isSet(_Fields field) {
37057 if (field == null) {
37058 throw new IllegalArgumentException();
37059 }
37060
37061 switch (field) {
37062 case SUCCESS:
37063 return isSetSuccess();
37064 case E:
37065 return isSetE();
37066 }
37067 throw new IllegalStateException();
37068 }
37069
37070 @Override
37071 public boolean equals(Object that) {
37072 if (that == null)
37073 return false;
37074 if (that instanceof listPlugins_result)
37075 return this.equals((listPlugins_result)that);
37076 return false;
37077 }
37078
37079 public boolean equals(listPlugins_result that) {
37080 if (that == null)
37081 return false;
37082
37083 boolean this_present_success = true && this.isSetSuccess();
37084 boolean that_present_success = true && that.isSetSuccess();
37085 if (this_present_success || that_present_success) {
37086 if (!(this_present_success && that_present_success))
37087 return false;
37088 if (!this.success.equals(that.success))
37089 return false;
37090 }
37091
37092 boolean this_present_e = true && this.isSetE();
37093 boolean that_present_e = true && that.isSetE();
37094 if (this_present_e || that_present_e) {
37095 if (!(this_present_e && that_present_e))
37096 return false;
37097 if (!this.e.equals(that.e))
37098 return false;
37099 }
37100
37101 return true;
37102 }
37103
37104 @Override
37105 public int hashCode() {
37106 List<Object> list = new ArrayList<Object>();
37107
37108 boolean present_success = true && (isSetSuccess());
37109 list.add(present_success);
37110 if (present_success)
37111 list.add(success);
37112
37113 boolean present_e = true && (isSetE());
37114 list.add(present_e);
37115 if (present_e)
37116 list.add(e);
37117
37118 return list.hashCode();
37119 }
37120
37121 @Override
37122 public int compareTo(listPlugins_result other) {
37123 if (!getClass().equals(other.getClass())) {
37124 return getClass().getName().compareTo(other.getClass().getName());
37125 }
37126
37127 int lastComparison = 0;
37128
37129 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
37130 if (lastComparison != 0) {
37131 return lastComparison;
37132 }
37133 if (isSetSuccess()) {
37134 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
37135 if (lastComparison != 0) {
37136 return lastComparison;
37137 }
37138 }
37139 lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE());
37140 if (lastComparison != 0) {
37141 return lastComparison;
37142 }
37143 if (isSetE()) {
37144 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e);
37145 if (lastComparison != 0) {
37146 return lastComparison;
37147 }
37148 }
37149 return 0;
37150 }
37151
37152 public _Fields fieldForId(int fieldId) {
37153 return _Fields.findByThriftId(fieldId);
37154 }
37155
37156 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
37157 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
37158 }
37159
37160 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
37161 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
37162 }
37163
37164 @Override
37165 public String toString() {
37166 StringBuilder sb = new StringBuilder("listPlugins_result(");
37167 boolean first = true;
37168
37169 sb.append("success:");
37170 if (this.success == null) {
37171 sb.append("null");
37172 } else {
37173 sb.append(this.success);
37174 }
37175 first = false;
37176 if (!first) sb.append(", ");
37177 sb.append("e:");
37178 if (this.e == null) {
37179 sb.append("null");
37180 } else {
37181 sb.append(this.e);
37182 }
37183 first = false;
37184 sb.append(")");
37185 return sb.toString();
37186 }
37187
37188 public void validate() throws org.apache.thrift.TException {
37189
37190
37191 }
37192
37193 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
37194 try {
37195 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
37196 } catch (org.apache.thrift.TException te) {
37197 throw new java.io.IOException(te);
37198 }
37199 }
37200
37201 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
37202 try {
37203 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
37204 } catch (org.apache.thrift.TException te) {
37205 throw new java.io.IOException(te);
37206 }
37207 }
37208
37209 private static class listPlugins_resultStandardSchemeFactory implements SchemeFactory {
37210 public listPlugins_resultStandardScheme getScheme() {
37211 return new listPlugins_resultStandardScheme();
37212 }
37213 }
37214
37215 private static class listPlugins_resultStandardScheme extends StandardScheme<listPlugins_result> {
37216
37217 public void read(org.apache.thrift.protocol.TProtocol iprot, listPlugins_result struct) throws org.apache.thrift.TException {
37218 org.apache.thrift.protocol.TField schemeField;
37219 iprot.readStructBegin();
37220 while (true)
37221 {
37222 schemeField = iprot.readFieldBegin();
37223 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
37224 break;
37225 }
37226 switch (schemeField.id) {
37227 case 0:
37228 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
37229 {
37230 org.apache.thrift.protocol.TList _list168 = iprot.readListBegin();
37231 struct.success = new ArrayList<Plugin>(_list168.size);
37232 Plugin _elem169;
37233 for (int _i170 = 0; _i170 < _list168.size; ++_i170)
37234 {
37235 _elem169 = new Plugin();
37236 _elem169.read(iprot);
37237 struct.success.add(_elem169);
37238 }
37239 iprot.readListEnd();
37240 }
37241 struct.setSuccessIsSet(true);
37242 } else {
37243 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
37244 }
37245 break;
37246 case 1:
37247 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
37248 struct.e = new CentralDogmaException();
37249 struct.e.read(iprot);
37250 struct.setEIsSet(true);
37251 } else {
37252 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
37253 }
37254 break;
37255 default:
37256 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
37257 }
37258 iprot.readFieldEnd();
37259 }
37260 iprot.readStructEnd();
37261
37262
37263 struct.validate();
37264 }
37265
37266 public void write(org.apache.thrift.protocol.TProtocol oprot, listPlugins_result struct) throws org.apache.thrift.TException {
37267 struct.validate();
37268
37269 oprot.writeStructBegin(STRUCT_DESC);
37270 if (struct.success != null) {
37271 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
37272 {
37273 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
37274 for (Plugin _iter171 : struct.success)
37275 {
37276 _iter171.write(oprot);
37277 }
37278 oprot.writeListEnd();
37279 }
37280 oprot.writeFieldEnd();
37281 }
37282 if (struct.e != null) {
37283 oprot.writeFieldBegin(E_FIELD_DESC);
37284 struct.e.write(oprot);
37285 oprot.writeFieldEnd();
37286 }
37287 oprot.writeFieldStop();
37288 oprot.writeStructEnd();
37289 }
37290
37291 }
37292
37293 private static class listPlugins_resultTupleSchemeFactory implements SchemeFactory {
37294 public listPlugins_resultTupleScheme getScheme() {
37295 return new listPlugins_resultTupleScheme();
37296 }
37297 }
37298
37299 private static class listPlugins_resultTupleScheme extends TupleScheme<listPlugins_result> {
37300
37301 @Override
37302 public void write(org.apache.thrift.protocol.TProtocol prot, listPlugins_result struct) throws org.apache.thrift.TException {
37303 TTupleProtocol oprot = (TTupleProtocol) prot;
37304 BitSet optionals = new BitSet();
37305 if (struct.isSetSuccess()) {
37306 optionals.set(0);
37307 }
37308 if (struct.isSetE()) {
37309 optionals.set(1);
37310 }
37311 oprot.writeBitSet(optionals, 2);
37312 if (struct.isSetSuccess()) {
37313 {
37314 oprot.writeI32(struct.success.size());
37315 for (Plugin _iter172 : struct.success)
37316 {
37317 _iter172.write(oprot);
37318 }
37319 }
37320 }
37321 if (struct.isSetE()) {
37322 struct.e.write(oprot);
37323 }
37324 }
37325
37326 @Override
37327 public void read(org.apache.thrift.protocol.TProtocol prot, listPlugins_result struct) throws org.apache.thrift.TException {
37328 TTupleProtocol iprot = (TTupleProtocol) prot;
37329 BitSet incoming = iprot.readBitSet(2);
37330 if (incoming.get(0)) {
37331 {
37332 org.apache.thrift.protocol.TList _list173 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
37333 struct.success = new ArrayList<Plugin>(_list173.size);
37334 Plugin _elem174;
37335 for (int _i175 = 0; _i175 < _list173.size; ++_i175)
37336 {
37337 _elem174 = new Plugin();
37338 _elem174.read(iprot);
37339 struct.success.add(_elem174);
37340 }
37341 }
37342 struct.setSuccessIsSet(true);
37343 }
37344 if (incoming.get(1)) {
37345 struct.e = new CentralDogmaException();
37346 struct.e.read(iprot);
37347 struct.setEIsSet(true);
37348 }
37349 }
37350 }
37351
37352 }
37353
37354 public static class listPluginOperations_args implements org.apache.thrift.TBase<listPluginOperations_args, listPluginOperations_args._Fields>, java.io.Serializable, Cloneable, Comparable<listPluginOperations_args> {
37355 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("listPluginOperations_args");
37356
37357 private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)1);
37358
37359 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
37360 static {
37361 schemes.put(StandardScheme.class, new listPluginOperations_argsStandardSchemeFactory());
37362 schemes.put(TupleScheme.class, new listPluginOperations_argsTupleSchemeFactory());
37363 }
37364
37365 public String projectName;
37366
37367
37368 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
37369 PROJECT_NAME((short)1, "projectName");
37370
37371 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
37372
37373 static {
37374 for (_Fields field : EnumSet.allOf(_Fields.class)) {
37375 byName.put(field.getFieldName(), field);
37376 }
37377 }
37378
37379
37380
37381
37382 public static _Fields findByThriftId(int fieldId) {
37383 switch(fieldId) {
37384 case 1:
37385 return PROJECT_NAME;
37386 default:
37387 return null;
37388 }
37389 }
37390
37391
37392
37393
37394
37395 public static _Fields findByThriftIdOrThrow(int fieldId) {
37396 _Fields fields = findByThriftId(fieldId);
37397 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
37398 return fields;
37399 }
37400
37401
37402
37403
37404 public static _Fields findByName(String name) {
37405 return byName.get(name);
37406 }
37407
37408 private final short _thriftId;
37409 private final String _fieldName;
37410
37411 _Fields(short thriftId, String fieldName) {
37412 _thriftId = thriftId;
37413 _fieldName = fieldName;
37414 }
37415
37416 public short getThriftFieldId() {
37417 return _thriftId;
37418 }
37419
37420 public String getFieldName() {
37421 return _fieldName;
37422 }
37423 }
37424
37425
37426 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
37427 static {
37428 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
37429 tmpMap.put(_Fields.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", org.apache.thrift.TFieldRequirementType.DEFAULT,
37430 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
37431 metaDataMap = Collections.unmodifiableMap(tmpMap);
37432 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(listPluginOperations_args.class, metaDataMap);
37433 }
37434
37435 public listPluginOperations_args() {
37436 }
37437
37438 public listPluginOperations_args(
37439 String projectName)
37440 {
37441 this();
37442 this.projectName = projectName;
37443 }
37444
37445
37446
37447
37448 public listPluginOperations_args(listPluginOperations_args other) {
37449 if (other.isSetProjectName()) {
37450 this.projectName = other.projectName;
37451 }
37452 }
37453
37454 public listPluginOperations_args deepCopy() {
37455 return new listPluginOperations_args(this);
37456 }
37457
37458 @Override
37459 public void clear() {
37460 this.projectName = null;
37461 }
37462
37463 public String getProjectName() {
37464 return this.projectName;
37465 }
37466
37467 public listPluginOperations_args setProjectName(String projectName) {
37468 this.projectName = projectName;
37469 return this;
37470 }
37471
37472 public void unsetProjectName() {
37473 this.projectName = null;
37474 }
37475
37476
37477 public boolean isSetProjectName() {
37478 return this.projectName != null;
37479 }
37480
37481 public void setProjectNameIsSet(boolean value) {
37482 if (!value) {
37483 this.projectName = null;
37484 }
37485 }
37486
37487 public void setFieldValue(_Fields field, Object value) {
37488 switch (field) {
37489 case PROJECT_NAME:
37490 if (value == null) {
37491 unsetProjectName();
37492 } else {
37493 setProjectName((String)value);
37494 }
37495 break;
37496
37497 }
37498 }
37499
37500 public Object getFieldValue(_Fields field) {
37501 switch (field) {
37502 case PROJECT_NAME:
37503 return getProjectName();
37504
37505 }
37506 throw new IllegalStateException();
37507 }
37508
37509
37510 public boolean isSet(_Fields field) {
37511 if (field == null) {
37512 throw new IllegalArgumentException();
37513 }
37514
37515 switch (field) {
37516 case PROJECT_NAME:
37517 return isSetProjectName();
37518 }
37519 throw new IllegalStateException();
37520 }
37521
37522 @Override
37523 public boolean equals(Object that) {
37524 if (that == null)
37525 return false;
37526 if (that instanceof listPluginOperations_args)
37527 return this.equals((listPluginOperations_args)that);
37528 return false;
37529 }
37530
37531 public boolean equals(listPluginOperations_args that) {
37532 if (that == null)
37533 return false;
37534
37535 boolean this_present_projectName = true && this.isSetProjectName();
37536 boolean that_present_projectName = true && that.isSetProjectName();
37537 if (this_present_projectName || that_present_projectName) {
37538 if (!(this_present_projectName && that_present_projectName))
37539 return false;
37540 if (!this.projectName.equals(that.projectName))
37541 return false;
37542 }
37543
37544 return true;
37545 }
37546
37547 @Override
37548 public int hashCode() {
37549 List<Object> list = new ArrayList<Object>();
37550
37551 boolean present_projectName = true && (isSetProjectName());
37552 list.add(present_projectName);
37553 if (present_projectName)
37554 list.add(projectName);
37555
37556 return list.hashCode();
37557 }
37558
37559 @Override
37560 public int compareTo(listPluginOperations_args other) {
37561 if (!getClass().equals(other.getClass())) {
37562 return getClass().getName().compareTo(other.getClass().getName());
37563 }
37564
37565 int lastComparison = 0;
37566
37567 lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName());
37568 if (lastComparison != 0) {
37569 return lastComparison;
37570 }
37571 if (isSetProjectName()) {
37572 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName);
37573 if (lastComparison != 0) {
37574 return lastComparison;
37575 }
37576 }
37577 return 0;
37578 }
37579
37580 public _Fields fieldForId(int fieldId) {
37581 return _Fields.findByThriftId(fieldId);
37582 }
37583
37584 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
37585 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
37586 }
37587
37588 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
37589 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
37590 }
37591
37592 @Override
37593 public String toString() {
37594 StringBuilder sb = new StringBuilder("listPluginOperations_args(");
37595 boolean first = true;
37596
37597 sb.append("projectName:");
37598 if (this.projectName == null) {
37599 sb.append("null");
37600 } else {
37601 sb.append(this.projectName);
37602 }
37603 first = false;
37604 sb.append(")");
37605 return sb.toString();
37606 }
37607
37608 public void validate() throws org.apache.thrift.TException {
37609
37610
37611 }
37612
37613 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
37614 try {
37615 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
37616 } catch (org.apache.thrift.TException te) {
37617 throw new java.io.IOException(te);
37618 }
37619 }
37620
37621 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
37622 try {
37623 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
37624 } catch (org.apache.thrift.TException te) {
37625 throw new java.io.IOException(te);
37626 }
37627 }
37628
37629 private static class listPluginOperations_argsStandardSchemeFactory implements SchemeFactory {
37630 public listPluginOperations_argsStandardScheme getScheme() {
37631 return new listPluginOperations_argsStandardScheme();
37632 }
37633 }
37634
37635 private static class listPluginOperations_argsStandardScheme extends StandardScheme<listPluginOperations_args> {
37636
37637 public void read(org.apache.thrift.protocol.TProtocol iprot, listPluginOperations_args struct) throws org.apache.thrift.TException {
37638 org.apache.thrift.protocol.TField schemeField;
37639 iprot.readStructBegin();
37640 while (true)
37641 {
37642 schemeField = iprot.readFieldBegin();
37643 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
37644 break;
37645 }
37646 switch (schemeField.id) {
37647 case 1:
37648 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
37649 struct.projectName = iprot.readString();
37650 struct.setProjectNameIsSet(true);
37651 } else {
37652 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
37653 }
37654 break;
37655 default:
37656 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
37657 }
37658 iprot.readFieldEnd();
37659 }
37660 iprot.readStructEnd();
37661
37662
37663 struct.validate();
37664 }
37665
37666 public void write(org.apache.thrift.protocol.TProtocol oprot, listPluginOperations_args struct) throws org.apache.thrift.TException {
37667 struct.validate();
37668
37669 oprot.writeStructBegin(STRUCT_DESC);
37670 if (struct.projectName != null) {
37671 oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC);
37672 oprot.writeString(struct.projectName);
37673 oprot.writeFieldEnd();
37674 }
37675 oprot.writeFieldStop();
37676 oprot.writeStructEnd();
37677 }
37678
37679 }
37680
37681 private static class listPluginOperations_argsTupleSchemeFactory implements SchemeFactory {
37682 public listPluginOperations_argsTupleScheme getScheme() {
37683 return new listPluginOperations_argsTupleScheme();
37684 }
37685 }
37686
37687 private static class listPluginOperations_argsTupleScheme extends TupleScheme<listPluginOperations_args> {
37688
37689 @Override
37690 public void write(org.apache.thrift.protocol.TProtocol prot, listPluginOperations_args struct) throws org.apache.thrift.TException {
37691 TTupleProtocol oprot = (TTupleProtocol) prot;
37692 BitSet optionals = new BitSet();
37693 if (struct.isSetProjectName()) {
37694 optionals.set(0);
37695 }
37696 oprot.writeBitSet(optionals, 1);
37697 if (struct.isSetProjectName()) {
37698 oprot.writeString(struct.projectName);
37699 }
37700 }
37701
37702 @Override
37703 public void read(org.apache.thrift.protocol.TProtocol prot, listPluginOperations_args struct) throws org.apache.thrift.TException {
37704 TTupleProtocol iprot = (TTupleProtocol) prot;
37705 BitSet incoming = iprot.readBitSet(1);
37706 if (incoming.get(0)) {
37707 struct.projectName = iprot.readString();
37708 struct.setProjectNameIsSet(true);
37709 }
37710 }
37711 }
37712
37713 }
37714
37715 public static class listPluginOperations_result implements org.apache.thrift.TBase<listPluginOperations_result, listPluginOperations_result._Fields>, java.io.Serializable, Cloneable, Comparable<listPluginOperations_result> {
37716 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("listPluginOperations_result");
37717
37718 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
37719 private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
37720
37721 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
37722 static {
37723 schemes.put(StandardScheme.class, new listPluginOperations_resultStandardSchemeFactory());
37724 schemes.put(TupleScheme.class, new listPluginOperations_resultTupleSchemeFactory());
37725 }
37726
37727 public List<PluginOperation> success;
37728 public CentralDogmaException e;
37729
37730
37731 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
37732 SUCCESS((short)0, "success"),
37733 E((short)1, "e");
37734
37735 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
37736
37737 static {
37738 for (_Fields field : EnumSet.allOf(_Fields.class)) {
37739 byName.put(field.getFieldName(), field);
37740 }
37741 }
37742
37743
37744
37745
37746 public static _Fields findByThriftId(int fieldId) {
37747 switch(fieldId) {
37748 case 0:
37749 return SUCCESS;
37750 case 1:
37751 return E;
37752 default:
37753 return null;
37754 }
37755 }
37756
37757
37758
37759
37760
37761 public static _Fields findByThriftIdOrThrow(int fieldId) {
37762 _Fields fields = findByThriftId(fieldId);
37763 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
37764 return fields;
37765 }
37766
37767
37768
37769
37770 public static _Fields findByName(String name) {
37771 return byName.get(name);
37772 }
37773
37774 private final short _thriftId;
37775 private final String _fieldName;
37776
37777 _Fields(short thriftId, String fieldName) {
37778 _thriftId = thriftId;
37779 _fieldName = fieldName;
37780 }
37781
37782 public short getThriftFieldId() {
37783 return _thriftId;
37784 }
37785
37786 public String getFieldName() {
37787 return _fieldName;
37788 }
37789 }
37790
37791
37792 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
37793 static {
37794 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
37795 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
37796 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
37797 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PluginOperation.class))));
37798 tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
37799 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
37800 metaDataMap = Collections.unmodifiableMap(tmpMap);
37801 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(listPluginOperations_result.class, metaDataMap);
37802 }
37803
37804 public listPluginOperations_result() {
37805 }
37806
37807 public listPluginOperations_result(
37808 List<PluginOperation> success,
37809 CentralDogmaException e)
37810 {
37811 this();
37812 this.success = success;
37813 this.e = e;
37814 }
37815
37816
37817
37818
37819 public listPluginOperations_result(listPluginOperations_result other) {
37820 if (other.isSetSuccess()) {
37821 List<PluginOperation> __this__success = new ArrayList<PluginOperation>(other.success.size());
37822 for (PluginOperation other_element : other.success) {
37823 __this__success.add(new PluginOperation(other_element));
37824 }
37825 this.success = __this__success;
37826 }
37827 if (other.isSetE()) {
37828 this.e = new CentralDogmaException(other.e);
37829 }
37830 }
37831
37832 public listPluginOperations_result deepCopy() {
37833 return new listPluginOperations_result(this);
37834 }
37835
37836 @Override
37837 public void clear() {
37838 this.success = null;
37839 this.e = null;
37840 }
37841
37842 public int getSuccessSize() {
37843 return (this.success == null) ? 0 : this.success.size();
37844 }
37845
37846 public java.util.Iterator<PluginOperation> getSuccessIterator() {
37847 return (this.success == null) ? null : this.success.iterator();
37848 }
37849
37850 public void addToSuccess(PluginOperation elem) {
37851 if (this.success == null) {
37852 this.success = new ArrayList<PluginOperation>();
37853 }
37854 this.success.add(elem);
37855 }
37856
37857 public List<PluginOperation> getSuccess() {
37858 return this.success;
37859 }
37860
37861 public listPluginOperations_result setSuccess(List<PluginOperation> success) {
37862 this.success = success;
37863 return this;
37864 }
37865
37866 public void unsetSuccess() {
37867 this.success = null;
37868 }
37869
37870
37871 public boolean isSetSuccess() {
37872 return this.success != null;
37873 }
37874
37875 public void setSuccessIsSet(boolean value) {
37876 if (!value) {
37877 this.success = null;
37878 }
37879 }
37880
37881 public CentralDogmaException getE() {
37882 return this.e;
37883 }
37884
37885 public listPluginOperations_result setE(CentralDogmaException e) {
37886 this.e = e;
37887 return this;
37888 }
37889
37890 public void unsetE() {
37891 this.e = null;
37892 }
37893
37894
37895 public boolean isSetE() {
37896 return this.e != null;
37897 }
37898
37899 public void setEIsSet(boolean value) {
37900 if (!value) {
37901 this.e = null;
37902 }
37903 }
37904
37905 public void setFieldValue(_Fields field, Object value) {
37906 switch (field) {
37907 case SUCCESS:
37908 if (value == null) {
37909 unsetSuccess();
37910 } else {
37911 setSuccess((List<PluginOperation>)value);
37912 }
37913 break;
37914
37915 case E:
37916 if (value == null) {
37917 unsetE();
37918 } else {
37919 setE((CentralDogmaException)value);
37920 }
37921 break;
37922
37923 }
37924 }
37925
37926 public Object getFieldValue(_Fields field) {
37927 switch (field) {
37928 case SUCCESS:
37929 return getSuccess();
37930
37931 case E:
37932 return getE();
37933
37934 }
37935 throw new IllegalStateException();
37936 }
37937
37938
37939 public boolean isSet(_Fields field) {
37940 if (field == null) {
37941 throw new IllegalArgumentException();
37942 }
37943
37944 switch (field) {
37945 case SUCCESS:
37946 return isSetSuccess();
37947 case E:
37948 return isSetE();
37949 }
37950 throw new IllegalStateException();
37951 }
37952
37953 @Override
37954 public boolean equals(Object that) {
37955 if (that == null)
37956 return false;
37957 if (that instanceof listPluginOperations_result)
37958 return this.equals((listPluginOperations_result)that);
37959 return false;
37960 }
37961
37962 public boolean equals(listPluginOperations_result that) {
37963 if (that == null)
37964 return false;
37965
37966 boolean this_present_success = true && this.isSetSuccess();
37967 boolean that_present_success = true && that.isSetSuccess();
37968 if (this_present_success || that_present_success) {
37969 if (!(this_present_success && that_present_success))
37970 return false;
37971 if (!this.success.equals(that.success))
37972 return false;
37973 }
37974
37975 boolean this_present_e = true && this.isSetE();
37976 boolean that_present_e = true && that.isSetE();
37977 if (this_present_e || that_present_e) {
37978 if (!(this_present_e && that_present_e))
37979 return false;
37980 if (!this.e.equals(that.e))
37981 return false;
37982 }
37983
37984 return true;
37985 }
37986
37987 @Override
37988 public int hashCode() {
37989 List<Object> list = new ArrayList<Object>();
37990
37991 boolean present_success = true && (isSetSuccess());
37992 list.add(present_success);
37993 if (present_success)
37994 list.add(success);
37995
37996 boolean present_e = true && (isSetE());
37997 list.add(present_e);
37998 if (present_e)
37999 list.add(e);
38000
38001 return list.hashCode();
38002 }
38003
38004 @Override
38005 public int compareTo(listPluginOperations_result other) {
38006 if (!getClass().equals(other.getClass())) {
38007 return getClass().getName().compareTo(other.getClass().getName());
38008 }
38009
38010 int lastComparison = 0;
38011
38012 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
38013 if (lastComparison != 0) {
38014 return lastComparison;
38015 }
38016 if (isSetSuccess()) {
38017 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
38018 if (lastComparison != 0) {
38019 return lastComparison;
38020 }
38021 }
38022 lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE());
38023 if (lastComparison != 0) {
38024 return lastComparison;
38025 }
38026 if (isSetE()) {
38027 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e);
38028 if (lastComparison != 0) {
38029 return lastComparison;
38030 }
38031 }
38032 return 0;
38033 }
38034
38035 public _Fields fieldForId(int fieldId) {
38036 return _Fields.findByThriftId(fieldId);
38037 }
38038
38039 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
38040 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
38041 }
38042
38043 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
38044 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
38045 }
38046
38047 @Override
38048 public String toString() {
38049 StringBuilder sb = new StringBuilder("listPluginOperations_result(");
38050 boolean first = true;
38051
38052 sb.append("success:");
38053 if (this.success == null) {
38054 sb.append("null");
38055 } else {
38056 sb.append(this.success);
38057 }
38058 first = false;
38059 if (!first) sb.append(", ");
38060 sb.append("e:");
38061 if (this.e == null) {
38062 sb.append("null");
38063 } else {
38064 sb.append(this.e);
38065 }
38066 first = false;
38067 sb.append(")");
38068 return sb.toString();
38069 }
38070
38071 public void validate() throws org.apache.thrift.TException {
38072
38073
38074 }
38075
38076 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
38077 try {
38078 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
38079 } catch (org.apache.thrift.TException te) {
38080 throw new java.io.IOException(te);
38081 }
38082 }
38083
38084 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
38085 try {
38086 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
38087 } catch (org.apache.thrift.TException te) {
38088 throw new java.io.IOException(te);
38089 }
38090 }
38091
38092 private static class listPluginOperations_resultStandardSchemeFactory implements SchemeFactory {
38093 public listPluginOperations_resultStandardScheme getScheme() {
38094 return new listPluginOperations_resultStandardScheme();
38095 }
38096 }
38097
38098 private static class listPluginOperations_resultStandardScheme extends StandardScheme<listPluginOperations_result> {
38099
38100 public void read(org.apache.thrift.protocol.TProtocol iprot, listPluginOperations_result struct) throws org.apache.thrift.TException {
38101 org.apache.thrift.protocol.TField schemeField;
38102 iprot.readStructBegin();
38103 while (true)
38104 {
38105 schemeField = iprot.readFieldBegin();
38106 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
38107 break;
38108 }
38109 switch (schemeField.id) {
38110 case 0:
38111 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
38112 {
38113 org.apache.thrift.protocol.TList _list176 = iprot.readListBegin();
38114 struct.success = new ArrayList<PluginOperation>(_list176.size);
38115 PluginOperation _elem177;
38116 for (int _i178 = 0; _i178 < _list176.size; ++_i178)
38117 {
38118 _elem177 = new PluginOperation();
38119 _elem177.read(iprot);
38120 struct.success.add(_elem177);
38121 }
38122 iprot.readListEnd();
38123 }
38124 struct.setSuccessIsSet(true);
38125 } else {
38126 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
38127 }
38128 break;
38129 case 1:
38130 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
38131 struct.e = new CentralDogmaException();
38132 struct.e.read(iprot);
38133 struct.setEIsSet(true);
38134 } else {
38135 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
38136 }
38137 break;
38138 default:
38139 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
38140 }
38141 iprot.readFieldEnd();
38142 }
38143 iprot.readStructEnd();
38144
38145
38146 struct.validate();
38147 }
38148
38149 public void write(org.apache.thrift.protocol.TProtocol oprot, listPluginOperations_result struct) throws org.apache.thrift.TException {
38150 struct.validate();
38151
38152 oprot.writeStructBegin(STRUCT_DESC);
38153 if (struct.success != null) {
38154 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
38155 {
38156 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
38157 for (PluginOperation _iter179 : struct.success)
38158 {
38159 _iter179.write(oprot);
38160 }
38161 oprot.writeListEnd();
38162 }
38163 oprot.writeFieldEnd();
38164 }
38165 if (struct.e != null) {
38166 oprot.writeFieldBegin(E_FIELD_DESC);
38167 struct.e.write(oprot);
38168 oprot.writeFieldEnd();
38169 }
38170 oprot.writeFieldStop();
38171 oprot.writeStructEnd();
38172 }
38173
38174 }
38175
38176 private static class listPluginOperations_resultTupleSchemeFactory implements SchemeFactory {
38177 public listPluginOperations_resultTupleScheme getScheme() {
38178 return new listPluginOperations_resultTupleScheme();
38179 }
38180 }
38181
38182 private static class listPluginOperations_resultTupleScheme extends TupleScheme<listPluginOperations_result> {
38183
38184 @Override
38185 public void write(org.apache.thrift.protocol.TProtocol prot, listPluginOperations_result struct) throws org.apache.thrift.TException {
38186 TTupleProtocol oprot = (TTupleProtocol) prot;
38187 BitSet optionals = new BitSet();
38188 if (struct.isSetSuccess()) {
38189 optionals.set(0);
38190 }
38191 if (struct.isSetE()) {
38192 optionals.set(1);
38193 }
38194 oprot.writeBitSet(optionals, 2);
38195 if (struct.isSetSuccess()) {
38196 {
38197 oprot.writeI32(struct.success.size());
38198 for (PluginOperation _iter180 : struct.success)
38199 {
38200 _iter180.write(oprot);
38201 }
38202 }
38203 }
38204 if (struct.isSetE()) {
38205 struct.e.write(oprot);
38206 }
38207 }
38208
38209 @Override
38210 public void read(org.apache.thrift.protocol.TProtocol prot, listPluginOperations_result struct) throws org.apache.thrift.TException {
38211 TTupleProtocol iprot = (TTupleProtocol) prot;
38212 BitSet incoming = iprot.readBitSet(2);
38213 if (incoming.get(0)) {
38214 {
38215 org.apache.thrift.protocol.TList _list181 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
38216 struct.success = new ArrayList<PluginOperation>(_list181.size);
38217 PluginOperation _elem182;
38218 for (int _i183 = 0; _i183 < _list181.size; ++_i183)
38219 {
38220 _elem182 = new PluginOperation();
38221 _elem182.read(iprot);
38222 struct.success.add(_elem182);
38223 }
38224 }
38225 struct.setSuccessIsSet(true);
38226 }
38227 if (incoming.get(1)) {
38228 struct.e = new CentralDogmaException();
38229 struct.e.read(iprot);
38230 struct.setEIsSet(true);
38231 }
38232 }
38233 }
38234
38235 }
38236
38237 public static class performPluginOperation_args implements org.apache.thrift.TBase<performPluginOperation_args, performPluginOperation_args._Fields>, java.io.Serializable, Cloneable, Comparable<performPluginOperation_args> {
38238 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("performPluginOperation_args");
38239
38240 private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)1);
38241 private static final org.apache.thrift.protocol.TField PLUGIN_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("pluginName", org.apache.thrift.protocol.TType.STRING, (short)2);
38242 private static final org.apache.thrift.protocol.TField OPERATION_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("operationName", org.apache.thrift.protocol.TType.STRING, (short)3);
38243 private static final org.apache.thrift.protocol.TField PARAMS_FIELD_DESC = new org.apache.thrift.protocol.TField("params", org.apache.thrift.protocol.TType.STRING, (short)4);
38244
38245 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
38246 static {
38247 schemes.put(StandardScheme.class, new performPluginOperation_argsStandardSchemeFactory());
38248 schemes.put(TupleScheme.class, new performPluginOperation_argsTupleSchemeFactory());
38249 }
38250
38251 public String projectName;
38252 public String pluginName;
38253 public String operationName;
38254 public String params;
38255
38256
38257 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
38258 PROJECT_NAME((short)1, "projectName"),
38259 PLUGIN_NAME((short)2, "pluginName"),
38260 OPERATION_NAME((short)3, "operationName"),
38261 PARAMS((short)4, "params");
38262
38263 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
38264
38265 static {
38266 for (_Fields field : EnumSet.allOf(_Fields.class)) {
38267 byName.put(field.getFieldName(), field);
38268 }
38269 }
38270
38271
38272
38273
38274 public static _Fields findByThriftId(int fieldId) {
38275 switch(fieldId) {
38276 case 1:
38277 return PROJECT_NAME;
38278 case 2:
38279 return PLUGIN_NAME;
38280 case 3:
38281 return OPERATION_NAME;
38282 case 4:
38283 return PARAMS;
38284 default:
38285 return null;
38286 }
38287 }
38288
38289
38290
38291
38292
38293 public static _Fields findByThriftIdOrThrow(int fieldId) {
38294 _Fields fields = findByThriftId(fieldId);
38295 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
38296 return fields;
38297 }
38298
38299
38300
38301
38302 public static _Fields findByName(String name) {
38303 return byName.get(name);
38304 }
38305
38306 private final short _thriftId;
38307 private final String _fieldName;
38308
38309 _Fields(short thriftId, String fieldName) {
38310 _thriftId = thriftId;
38311 _fieldName = fieldName;
38312 }
38313
38314 public short getThriftFieldId() {
38315 return _thriftId;
38316 }
38317
38318 public String getFieldName() {
38319 return _fieldName;
38320 }
38321 }
38322
38323
38324 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
38325 static {
38326 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
38327 tmpMap.put(_Fields.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", org.apache.thrift.TFieldRequirementType.DEFAULT,
38328 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
38329 tmpMap.put(_Fields.PLUGIN_NAME, new org.apache.thrift.meta_data.FieldMetaData("pluginName", org.apache.thrift.TFieldRequirementType.DEFAULT,
38330 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
38331 tmpMap.put(_Fields.OPERATION_NAME, new org.apache.thrift.meta_data.FieldMetaData("operationName", org.apache.thrift.TFieldRequirementType.DEFAULT,
38332 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
38333 tmpMap.put(_Fields.PARAMS, new org.apache.thrift.meta_data.FieldMetaData("params", org.apache.thrift.TFieldRequirementType.DEFAULT,
38334 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
38335 metaDataMap = Collections.unmodifiableMap(tmpMap);
38336 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(performPluginOperation_args.class, metaDataMap);
38337 }
38338
38339 public performPluginOperation_args() {
38340 }
38341
38342 public performPluginOperation_args(
38343 String projectName,
38344 String pluginName,
38345 String operationName,
38346 String params)
38347 {
38348 this();
38349 this.projectName = projectName;
38350 this.pluginName = pluginName;
38351 this.operationName = operationName;
38352 this.params = params;
38353 }
38354
38355
38356
38357
38358 public performPluginOperation_args(performPluginOperation_args other) {
38359 if (other.isSetProjectName()) {
38360 this.projectName = other.projectName;
38361 }
38362 if (other.isSetPluginName()) {
38363 this.pluginName = other.pluginName;
38364 }
38365 if (other.isSetOperationName()) {
38366 this.operationName = other.operationName;
38367 }
38368 if (other.isSetParams()) {
38369 this.params = other.params;
38370 }
38371 }
38372
38373 public performPluginOperation_args deepCopy() {
38374 return new performPluginOperation_args(this);
38375 }
38376
38377 @Override
38378 public void clear() {
38379 this.projectName = null;
38380 this.pluginName = null;
38381 this.operationName = null;
38382 this.params = null;
38383 }
38384
38385 public String getProjectName() {
38386 return this.projectName;
38387 }
38388
38389 public performPluginOperation_args setProjectName(String projectName) {
38390 this.projectName = projectName;
38391 return this;
38392 }
38393
38394 public void unsetProjectName() {
38395 this.projectName = null;
38396 }
38397
38398
38399 public boolean isSetProjectName() {
38400 return this.projectName != null;
38401 }
38402
38403 public void setProjectNameIsSet(boolean value) {
38404 if (!value) {
38405 this.projectName = null;
38406 }
38407 }
38408
38409 public String getPluginName() {
38410 return this.pluginName;
38411 }
38412
38413 public performPluginOperation_args setPluginName(String pluginName) {
38414 this.pluginName = pluginName;
38415 return this;
38416 }
38417
38418 public void unsetPluginName() {
38419 this.pluginName = null;
38420 }
38421
38422
38423 public boolean isSetPluginName() {
38424 return this.pluginName != null;
38425 }
38426
38427 public void setPluginNameIsSet(boolean value) {
38428 if (!value) {
38429 this.pluginName = null;
38430 }
38431 }
38432
38433 public String getOperationName() {
38434 return this.operationName;
38435 }
38436
38437 public performPluginOperation_args setOperationName(String operationName) {
38438 this.operationName = operationName;
38439 return this;
38440 }
38441
38442 public void unsetOperationName() {
38443 this.operationName = null;
38444 }
38445
38446
38447 public boolean isSetOperationName() {
38448 return this.operationName != null;
38449 }
38450
38451 public void setOperationNameIsSet(boolean value) {
38452 if (!value) {
38453 this.operationName = null;
38454 }
38455 }
38456
38457 public String getParams() {
38458 return this.params;
38459 }
38460
38461 public performPluginOperation_args setParams(String params) {
38462 this.params = params;
38463 return this;
38464 }
38465
38466 public void unsetParams() {
38467 this.params = null;
38468 }
38469
38470
38471 public boolean isSetParams() {
38472 return this.params != null;
38473 }
38474
38475 public void setParamsIsSet(boolean value) {
38476 if (!value) {
38477 this.params = null;
38478 }
38479 }
38480
38481 public void setFieldValue(_Fields field, Object value) {
38482 switch (field) {
38483 case PROJECT_NAME:
38484 if (value == null) {
38485 unsetProjectName();
38486 } else {
38487 setProjectName((String)value);
38488 }
38489 break;
38490
38491 case PLUGIN_NAME:
38492 if (value == null) {
38493 unsetPluginName();
38494 } else {
38495 setPluginName((String)value);
38496 }
38497 break;
38498
38499 case OPERATION_NAME:
38500 if (value == null) {
38501 unsetOperationName();
38502 } else {
38503 setOperationName((String)value);
38504 }
38505 break;
38506
38507 case PARAMS:
38508 if (value == null) {
38509 unsetParams();
38510 } else {
38511 setParams((String)value);
38512 }
38513 break;
38514
38515 }
38516 }
38517
38518 public Object getFieldValue(_Fields field) {
38519 switch (field) {
38520 case PROJECT_NAME:
38521 return getProjectName();
38522
38523 case PLUGIN_NAME:
38524 return getPluginName();
38525
38526 case OPERATION_NAME:
38527 return getOperationName();
38528
38529 case PARAMS:
38530 return getParams();
38531
38532 }
38533 throw new IllegalStateException();
38534 }
38535
38536
38537 public boolean isSet(_Fields field) {
38538 if (field == null) {
38539 throw new IllegalArgumentException();
38540 }
38541
38542 switch (field) {
38543 case PROJECT_NAME:
38544 return isSetProjectName();
38545 case PLUGIN_NAME:
38546 return isSetPluginName();
38547 case OPERATION_NAME:
38548 return isSetOperationName();
38549 case PARAMS:
38550 return isSetParams();
38551 }
38552 throw new IllegalStateException();
38553 }
38554
38555 @Override
38556 public boolean equals(Object that) {
38557 if (that == null)
38558 return false;
38559 if (that instanceof performPluginOperation_args)
38560 return this.equals((performPluginOperation_args)that);
38561 return false;
38562 }
38563
38564 public boolean equals(performPluginOperation_args that) {
38565 if (that == null)
38566 return false;
38567
38568 boolean this_present_projectName = true && this.isSetProjectName();
38569 boolean that_present_projectName = true && that.isSetProjectName();
38570 if (this_present_projectName || that_present_projectName) {
38571 if (!(this_present_projectName && that_present_projectName))
38572 return false;
38573 if (!this.projectName.equals(that.projectName))
38574 return false;
38575 }
38576
38577 boolean this_present_pluginName = true && this.isSetPluginName();
38578 boolean that_present_pluginName = true && that.isSetPluginName();
38579 if (this_present_pluginName || that_present_pluginName) {
38580 if (!(this_present_pluginName && that_present_pluginName))
38581 return false;
38582 if (!this.pluginName.equals(that.pluginName))
38583 return false;
38584 }
38585
38586 boolean this_present_operationName = true && this.isSetOperationName();
38587 boolean that_present_operationName = true && that.isSetOperationName();
38588 if (this_present_operationName || that_present_operationName) {
38589 if (!(this_present_operationName && that_present_operationName))
38590 return false;
38591 if (!this.operationName.equals(that.operationName))
38592 return false;
38593 }
38594
38595 boolean this_present_params = true && this.isSetParams();
38596 boolean that_present_params = true && that.isSetParams();
38597 if (this_present_params || that_present_params) {
38598 if (!(this_present_params && that_present_params))
38599 return false;
38600 if (!this.params.equals(that.params))
38601 return false;
38602 }
38603
38604 return true;
38605 }
38606
38607 @Override
38608 public int hashCode() {
38609 List<Object> list = new ArrayList<Object>();
38610
38611 boolean present_projectName = true && (isSetProjectName());
38612 list.add(present_projectName);
38613 if (present_projectName)
38614 list.add(projectName);
38615
38616 boolean present_pluginName = true && (isSetPluginName());
38617 list.add(present_pluginName);
38618 if (present_pluginName)
38619 list.add(pluginName);
38620
38621 boolean present_operationName = true && (isSetOperationName());
38622 list.add(present_operationName);
38623 if (present_operationName)
38624 list.add(operationName);
38625
38626 boolean present_params = true && (isSetParams());
38627 list.add(present_params);
38628 if (present_params)
38629 list.add(params);
38630
38631 return list.hashCode();
38632 }
38633
38634 @Override
38635 public int compareTo(performPluginOperation_args other) {
38636 if (!getClass().equals(other.getClass())) {
38637 return getClass().getName().compareTo(other.getClass().getName());
38638 }
38639
38640 int lastComparison = 0;
38641
38642 lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName());
38643 if (lastComparison != 0) {
38644 return lastComparison;
38645 }
38646 if (isSetProjectName()) {
38647 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName);
38648 if (lastComparison != 0) {
38649 return lastComparison;
38650 }
38651 }
38652 lastComparison = Boolean.valueOf(isSetPluginName()).compareTo(other.isSetPluginName());
38653 if (lastComparison != 0) {
38654 return lastComparison;
38655 }
38656 if (isSetPluginName()) {
38657 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pluginName, other.pluginName);
38658 if (lastComparison != 0) {
38659 return lastComparison;
38660 }
38661 }
38662 lastComparison = Boolean.valueOf(isSetOperationName()).compareTo(other.isSetOperationName());
38663 if (lastComparison != 0) {
38664 return lastComparison;
38665 }
38666 if (isSetOperationName()) {
38667 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationName, other.operationName);
38668 if (lastComparison != 0) {
38669 return lastComparison;
38670 }
38671 }
38672 lastComparison = Boolean.valueOf(isSetParams()).compareTo(other.isSetParams());
38673 if (lastComparison != 0) {
38674 return lastComparison;
38675 }
38676 if (isSetParams()) {
38677 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.params, other.params);
38678 if (lastComparison != 0) {
38679 return lastComparison;
38680 }
38681 }
38682 return 0;
38683 }
38684
38685 public _Fields fieldForId(int fieldId) {
38686 return _Fields.findByThriftId(fieldId);
38687 }
38688
38689 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
38690 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
38691 }
38692
38693 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
38694 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
38695 }
38696
38697 @Override
38698 public String toString() {
38699 StringBuilder sb = new StringBuilder("performPluginOperation_args(");
38700 boolean first = true;
38701
38702 sb.append("projectName:");
38703 if (this.projectName == null) {
38704 sb.append("null");
38705 } else {
38706 sb.append(this.projectName);
38707 }
38708 first = false;
38709 if (!first) sb.append(", ");
38710 sb.append("pluginName:");
38711 if (this.pluginName == null) {
38712 sb.append("null");
38713 } else {
38714 sb.append(this.pluginName);
38715 }
38716 first = false;
38717 if (!first) sb.append(", ");
38718 sb.append("operationName:");
38719 if (this.operationName == null) {
38720 sb.append("null");
38721 } else {
38722 sb.append(this.operationName);
38723 }
38724 first = false;
38725 if (!first) sb.append(", ");
38726 sb.append("params:");
38727 if (this.params == null) {
38728 sb.append("null");
38729 } else {
38730 sb.append(this.params);
38731 }
38732 first = false;
38733 sb.append(")");
38734 return sb.toString();
38735 }
38736
38737 public void validate() throws org.apache.thrift.TException {
38738
38739
38740 }
38741
38742 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
38743 try {
38744 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
38745 } catch (org.apache.thrift.TException te) {
38746 throw new java.io.IOException(te);
38747 }
38748 }
38749
38750 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
38751 try {
38752 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
38753 } catch (org.apache.thrift.TException te) {
38754 throw new java.io.IOException(te);
38755 }
38756 }
38757
38758 private static class performPluginOperation_argsStandardSchemeFactory implements SchemeFactory {
38759 public performPluginOperation_argsStandardScheme getScheme() {
38760 return new performPluginOperation_argsStandardScheme();
38761 }
38762 }
38763
38764 private static class performPluginOperation_argsStandardScheme extends StandardScheme<performPluginOperation_args> {
38765
38766 public void read(org.apache.thrift.protocol.TProtocol iprot, performPluginOperation_args struct) throws org.apache.thrift.TException {
38767 org.apache.thrift.protocol.TField schemeField;
38768 iprot.readStructBegin();
38769 while (true)
38770 {
38771 schemeField = iprot.readFieldBegin();
38772 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
38773 break;
38774 }
38775 switch (schemeField.id) {
38776 case 1:
38777 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
38778 struct.projectName = iprot.readString();
38779 struct.setProjectNameIsSet(true);
38780 } else {
38781 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
38782 }
38783 break;
38784 case 2:
38785 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
38786 struct.pluginName = iprot.readString();
38787 struct.setPluginNameIsSet(true);
38788 } else {
38789 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
38790 }
38791 break;
38792 case 3:
38793 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
38794 struct.operationName = iprot.readString();
38795 struct.setOperationNameIsSet(true);
38796 } else {
38797 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
38798 }
38799 break;
38800 case 4:
38801 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
38802 struct.params = iprot.readString();
38803 struct.setParamsIsSet(true);
38804 } else {
38805 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
38806 }
38807 break;
38808 default:
38809 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
38810 }
38811 iprot.readFieldEnd();
38812 }
38813 iprot.readStructEnd();
38814
38815
38816 struct.validate();
38817 }
38818
38819 public void write(org.apache.thrift.protocol.TProtocol oprot, performPluginOperation_args struct) throws org.apache.thrift.TException {
38820 struct.validate();
38821
38822 oprot.writeStructBegin(STRUCT_DESC);
38823 if (struct.projectName != null) {
38824 oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC);
38825 oprot.writeString(struct.projectName);
38826 oprot.writeFieldEnd();
38827 }
38828 if (struct.pluginName != null) {
38829 oprot.writeFieldBegin(PLUGIN_NAME_FIELD_DESC);
38830 oprot.writeString(struct.pluginName);
38831 oprot.writeFieldEnd();
38832 }
38833 if (struct.operationName != null) {
38834 oprot.writeFieldBegin(OPERATION_NAME_FIELD_DESC);
38835 oprot.writeString(struct.operationName);
38836 oprot.writeFieldEnd();
38837 }
38838 if (struct.params != null) {
38839 oprot.writeFieldBegin(PARAMS_FIELD_DESC);
38840 oprot.writeString(struct.params);
38841 oprot.writeFieldEnd();
38842 }
38843 oprot.writeFieldStop();
38844 oprot.writeStructEnd();
38845 }
38846
38847 }
38848
38849 private static class performPluginOperation_argsTupleSchemeFactory implements SchemeFactory {
38850 public performPluginOperation_argsTupleScheme getScheme() {
38851 return new performPluginOperation_argsTupleScheme();
38852 }
38853 }
38854
38855 private static class performPluginOperation_argsTupleScheme extends TupleScheme<performPluginOperation_args> {
38856
38857 @Override
38858 public void write(org.apache.thrift.protocol.TProtocol prot, performPluginOperation_args struct) throws org.apache.thrift.TException {
38859 TTupleProtocol oprot = (TTupleProtocol) prot;
38860 BitSet optionals = new BitSet();
38861 if (struct.isSetProjectName()) {
38862 optionals.set(0);
38863 }
38864 if (struct.isSetPluginName()) {
38865 optionals.set(1);
38866 }
38867 if (struct.isSetOperationName()) {
38868 optionals.set(2);
38869 }
38870 if (struct.isSetParams()) {
38871 optionals.set(3);
38872 }
38873 oprot.writeBitSet(optionals, 4);
38874 if (struct.isSetProjectName()) {
38875 oprot.writeString(struct.projectName);
38876 }
38877 if (struct.isSetPluginName()) {
38878 oprot.writeString(struct.pluginName);
38879 }
38880 if (struct.isSetOperationName()) {
38881 oprot.writeString(struct.operationName);
38882 }
38883 if (struct.isSetParams()) {
38884 oprot.writeString(struct.params);
38885 }
38886 }
38887
38888 @Override
38889 public void read(org.apache.thrift.protocol.TProtocol prot, performPluginOperation_args struct) throws org.apache.thrift.TException {
38890 TTupleProtocol iprot = (TTupleProtocol) prot;
38891 BitSet incoming = iprot.readBitSet(4);
38892 if (incoming.get(0)) {
38893 struct.projectName = iprot.readString();
38894 struct.setProjectNameIsSet(true);
38895 }
38896 if (incoming.get(1)) {
38897 struct.pluginName = iprot.readString();
38898 struct.setPluginNameIsSet(true);
38899 }
38900 if (incoming.get(2)) {
38901 struct.operationName = iprot.readString();
38902 struct.setOperationNameIsSet(true);
38903 }
38904 if (incoming.get(3)) {
38905 struct.params = iprot.readString();
38906 struct.setParamsIsSet(true);
38907 }
38908 }
38909 }
38910
38911 }
38912
38913 public static class performPluginOperation_result implements org.apache.thrift.TBase<performPluginOperation_result, performPluginOperation_result._Fields>, java.io.Serializable, Cloneable, Comparable<performPluginOperation_result> {
38914 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("performPluginOperation_result");
38915
38916 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRING, (short)0);
38917 private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
38918
38919 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
38920 static {
38921 schemes.put(StandardScheme.class, new performPluginOperation_resultStandardSchemeFactory());
38922 schemes.put(TupleScheme.class, new performPluginOperation_resultTupleSchemeFactory());
38923 }
38924
38925 public String success;
38926 public CentralDogmaException e;
38927
38928
38929 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
38930 SUCCESS((short)0, "success"),
38931 E((short)1, "e");
38932
38933 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
38934
38935 static {
38936 for (_Fields field : EnumSet.allOf(_Fields.class)) {
38937 byName.put(field.getFieldName(), field);
38938 }
38939 }
38940
38941
38942
38943
38944 public static _Fields findByThriftId(int fieldId) {
38945 switch(fieldId) {
38946 case 0:
38947 return SUCCESS;
38948 case 1:
38949 return E;
38950 default:
38951 return null;
38952 }
38953 }
38954
38955
38956
38957
38958
38959 public static _Fields findByThriftIdOrThrow(int fieldId) {
38960 _Fields fields = findByThriftId(fieldId);
38961 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
38962 return fields;
38963 }
38964
38965
38966
38967
38968 public static _Fields findByName(String name) {
38969 return byName.get(name);
38970 }
38971
38972 private final short _thriftId;
38973 private final String _fieldName;
38974
38975 _Fields(short thriftId, String fieldName) {
38976 _thriftId = thriftId;
38977 _fieldName = fieldName;
38978 }
38979
38980 public short getThriftFieldId() {
38981 return _thriftId;
38982 }
38983
38984 public String getFieldName() {
38985 return _fieldName;
38986 }
38987 }
38988
38989
38990 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
38991 static {
38992 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
38993 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
38994 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
38995 tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
38996 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
38997 metaDataMap = Collections.unmodifiableMap(tmpMap);
38998 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(performPluginOperation_result.class, metaDataMap);
38999 }
39000
39001 public performPluginOperation_result() {
39002 }
39003
39004 public performPluginOperation_result(
39005 String success,
39006 CentralDogmaException e)
39007 {
39008 this();
39009 this.success = success;
39010 this.e = e;
39011 }
39012
39013
39014
39015
39016 public performPluginOperation_result(performPluginOperation_result other) {
39017 if (other.isSetSuccess()) {
39018 this.success = other.success;
39019 }
39020 if (other.isSetE()) {
39021 this.e = new CentralDogmaException(other.e);
39022 }
39023 }
39024
39025 public performPluginOperation_result deepCopy() {
39026 return new performPluginOperation_result(this);
39027 }
39028
39029 @Override
39030 public void clear() {
39031 this.success = null;
39032 this.e = null;
39033 }
39034
39035 public String getSuccess() {
39036 return this.success;
39037 }
39038
39039 public performPluginOperation_result setSuccess(String success) {
39040 this.success = success;
39041 return this;
39042 }
39043
39044 public void unsetSuccess() {
39045 this.success = null;
39046 }
39047
39048
39049 public boolean isSetSuccess() {
39050 return this.success != null;
39051 }
39052
39053 public void setSuccessIsSet(boolean value) {
39054 if (!value) {
39055 this.success = null;
39056 }
39057 }
39058
39059 public CentralDogmaException getE() {
39060 return this.e;
39061 }
39062
39063 public performPluginOperation_result setE(CentralDogmaException e) {
39064 this.e = e;
39065 return this;
39066 }
39067
39068 public void unsetE() {
39069 this.e = null;
39070 }
39071
39072
39073 public boolean isSetE() {
39074 return this.e != null;
39075 }
39076
39077 public void setEIsSet(boolean value) {
39078 if (!value) {
39079 this.e = null;
39080 }
39081 }
39082
39083 public void setFieldValue(_Fields field, Object value) {
39084 switch (field) {
39085 case SUCCESS:
39086 if (value == null) {
39087 unsetSuccess();
39088 } else {
39089 setSuccess((String)value);
39090 }
39091 break;
39092
39093 case E:
39094 if (value == null) {
39095 unsetE();
39096 } else {
39097 setE((CentralDogmaException)value);
39098 }
39099 break;
39100
39101 }
39102 }
39103
39104 public Object getFieldValue(_Fields field) {
39105 switch (field) {
39106 case SUCCESS:
39107 return getSuccess();
39108
39109 case E:
39110 return getE();
39111
39112 }
39113 throw new IllegalStateException();
39114 }
39115
39116
39117 public boolean isSet(_Fields field) {
39118 if (field == null) {
39119 throw new IllegalArgumentException();
39120 }
39121
39122 switch (field) {
39123 case SUCCESS:
39124 return isSetSuccess();
39125 case E:
39126 return isSetE();
39127 }
39128 throw new IllegalStateException();
39129 }
39130
39131 @Override
39132 public boolean equals(Object that) {
39133 if (that == null)
39134 return false;
39135 if (that instanceof performPluginOperation_result)
39136 return this.equals((performPluginOperation_result)that);
39137 return false;
39138 }
39139
39140 public boolean equals(performPluginOperation_result that) {
39141 if (that == null)
39142 return false;
39143
39144 boolean this_present_success = true && this.isSetSuccess();
39145 boolean that_present_success = true && that.isSetSuccess();
39146 if (this_present_success || that_present_success) {
39147 if (!(this_present_success && that_present_success))
39148 return false;
39149 if (!this.success.equals(that.success))
39150 return false;
39151 }
39152
39153 boolean this_present_e = true && this.isSetE();
39154 boolean that_present_e = true && that.isSetE();
39155 if (this_present_e || that_present_e) {
39156 if (!(this_present_e && that_present_e))
39157 return false;
39158 if (!this.e.equals(that.e))
39159 return false;
39160 }
39161
39162 return true;
39163 }
39164
39165 @Override
39166 public int hashCode() {
39167 List<Object> list = new ArrayList<Object>();
39168
39169 boolean present_success = true && (isSetSuccess());
39170 list.add(present_success);
39171 if (present_success)
39172 list.add(success);
39173
39174 boolean present_e = true && (isSetE());
39175 list.add(present_e);
39176 if (present_e)
39177 list.add(e);
39178
39179 return list.hashCode();
39180 }
39181
39182 @Override
39183 public int compareTo(performPluginOperation_result other) {
39184 if (!getClass().equals(other.getClass())) {
39185 return getClass().getName().compareTo(other.getClass().getName());
39186 }
39187
39188 int lastComparison = 0;
39189
39190 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
39191 if (lastComparison != 0) {
39192 return lastComparison;
39193 }
39194 if (isSetSuccess()) {
39195 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
39196 if (lastComparison != 0) {
39197 return lastComparison;
39198 }
39199 }
39200 lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE());
39201 if (lastComparison != 0) {
39202 return lastComparison;
39203 }
39204 if (isSetE()) {
39205 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e);
39206 if (lastComparison != 0) {
39207 return lastComparison;
39208 }
39209 }
39210 return 0;
39211 }
39212
39213 public _Fields fieldForId(int fieldId) {
39214 return _Fields.findByThriftId(fieldId);
39215 }
39216
39217 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
39218 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
39219 }
39220
39221 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
39222 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
39223 }
39224
39225 @Override
39226 public String toString() {
39227 StringBuilder sb = new StringBuilder("performPluginOperation_result(");
39228 boolean first = true;
39229
39230 sb.append("success:");
39231 if (this.success == null) {
39232 sb.append("null");
39233 } else {
39234 sb.append(this.success);
39235 }
39236 first = false;
39237 if (!first) sb.append(", ");
39238 sb.append("e:");
39239 if (this.e == null) {
39240 sb.append("null");
39241 } else {
39242 sb.append(this.e);
39243 }
39244 first = false;
39245 sb.append(")");
39246 return sb.toString();
39247 }
39248
39249 public void validate() throws org.apache.thrift.TException {
39250
39251
39252 }
39253
39254 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
39255 try {
39256 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
39257 } catch (org.apache.thrift.TException te) {
39258 throw new java.io.IOException(te);
39259 }
39260 }
39261
39262 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
39263 try {
39264 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
39265 } catch (org.apache.thrift.TException te) {
39266 throw new java.io.IOException(te);
39267 }
39268 }
39269
39270 private static class performPluginOperation_resultStandardSchemeFactory implements SchemeFactory {
39271 public performPluginOperation_resultStandardScheme getScheme() {
39272 return new performPluginOperation_resultStandardScheme();
39273 }
39274 }
39275
39276 private static class performPluginOperation_resultStandardScheme extends StandardScheme<performPluginOperation_result> {
39277
39278 public void read(org.apache.thrift.protocol.TProtocol iprot, performPluginOperation_result struct) throws org.apache.thrift.TException {
39279 org.apache.thrift.protocol.TField schemeField;
39280 iprot.readStructBegin();
39281 while (true)
39282 {
39283 schemeField = iprot.readFieldBegin();
39284 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
39285 break;
39286 }
39287 switch (schemeField.id) {
39288 case 0:
39289 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
39290 struct.success = iprot.readString();
39291 struct.setSuccessIsSet(true);
39292 } else {
39293 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
39294 }
39295 break;
39296 case 1:
39297 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
39298 struct.e = new CentralDogmaException();
39299 struct.e.read(iprot);
39300 struct.setEIsSet(true);
39301 } else {
39302 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
39303 }
39304 break;
39305 default:
39306 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
39307 }
39308 iprot.readFieldEnd();
39309 }
39310 iprot.readStructEnd();
39311
39312
39313 struct.validate();
39314 }
39315
39316 public void write(org.apache.thrift.protocol.TProtocol oprot, performPluginOperation_result struct) throws org.apache.thrift.TException {
39317 struct.validate();
39318
39319 oprot.writeStructBegin(STRUCT_DESC);
39320 if (struct.success != null) {
39321 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
39322 oprot.writeString(struct.success);
39323 oprot.writeFieldEnd();
39324 }
39325 if (struct.e != null) {
39326 oprot.writeFieldBegin(E_FIELD_DESC);
39327 struct.e.write(oprot);
39328 oprot.writeFieldEnd();
39329 }
39330 oprot.writeFieldStop();
39331 oprot.writeStructEnd();
39332 }
39333
39334 }
39335
39336 private static class performPluginOperation_resultTupleSchemeFactory implements SchemeFactory {
39337 public performPluginOperation_resultTupleScheme getScheme() {
39338 return new performPluginOperation_resultTupleScheme();
39339 }
39340 }
39341
39342 private static class performPluginOperation_resultTupleScheme extends TupleScheme<performPluginOperation_result> {
39343
39344 @Override
39345 public void write(org.apache.thrift.protocol.TProtocol prot, performPluginOperation_result struct) throws org.apache.thrift.TException {
39346 TTupleProtocol oprot = (TTupleProtocol) prot;
39347 BitSet optionals = new BitSet();
39348 if (struct.isSetSuccess()) {
39349 optionals.set(0);
39350 }
39351 if (struct.isSetE()) {
39352 optionals.set(1);
39353 }
39354 oprot.writeBitSet(optionals, 2);
39355 if (struct.isSetSuccess()) {
39356 oprot.writeString(struct.success);
39357 }
39358 if (struct.isSetE()) {
39359 struct.e.write(oprot);
39360 }
39361 }
39362
39363 @Override
39364 public void read(org.apache.thrift.protocol.TProtocol prot, performPluginOperation_result struct) throws org.apache.thrift.TException {
39365 TTupleProtocol iprot = (TTupleProtocol) prot;
39366 BitSet incoming = iprot.readBitSet(2);
39367 if (incoming.get(0)) {
39368 struct.success = iprot.readString();
39369 struct.setSuccessIsSet(true);
39370 }
39371 if (incoming.get(1)) {
39372 struct.e = new CentralDogmaException();
39373 struct.e.read(iprot);
39374 struct.setEIsSet(true);
39375 }
39376 }
39377 }
39378
39379 }
39380
39381 public static class queryByNamedQuery_args implements org.apache.thrift.TBase<queryByNamedQuery_args, queryByNamedQuery_args._Fields>, java.io.Serializable, Cloneable, Comparable<queryByNamedQuery_args> {
39382 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("queryByNamedQuery_args");
39383
39384 private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)1);
39385 private static final org.apache.thrift.protocol.TField NAMED_QUERY_FIELD_DESC = new org.apache.thrift.protocol.TField("namedQuery", org.apache.thrift.protocol.TType.STRING, (short)2);
39386 private static final org.apache.thrift.protocol.TField REVISION_FIELD_DESC = new org.apache.thrift.protocol.TField("revision", org.apache.thrift.protocol.TType.STRUCT, (short)3);
39387
39388 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
39389 static {
39390 schemes.put(StandardScheme.class, new queryByNamedQuery_argsStandardSchemeFactory());
39391 schemes.put(TupleScheme.class, new queryByNamedQuery_argsTupleSchemeFactory());
39392 }
39393
39394 public String projectName;
39395 public String namedQuery;
39396 public Revision revision;
39397
39398
39399 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
39400 PROJECT_NAME((short)1, "projectName"),
39401 NAMED_QUERY((short)2, "namedQuery"),
39402 REVISION((short)3, "revision");
39403
39404 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
39405
39406 static {
39407 for (_Fields field : EnumSet.allOf(_Fields.class)) {
39408 byName.put(field.getFieldName(), field);
39409 }
39410 }
39411
39412
39413
39414
39415 public static _Fields findByThriftId(int fieldId) {
39416 switch(fieldId) {
39417 case 1:
39418 return PROJECT_NAME;
39419 case 2:
39420 return NAMED_QUERY;
39421 case 3:
39422 return REVISION;
39423 default:
39424 return null;
39425 }
39426 }
39427
39428
39429
39430
39431
39432 public static _Fields findByThriftIdOrThrow(int fieldId) {
39433 _Fields fields = findByThriftId(fieldId);
39434 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
39435 return fields;
39436 }
39437
39438
39439
39440
39441 public static _Fields findByName(String name) {
39442 return byName.get(name);
39443 }
39444
39445 private final short _thriftId;
39446 private final String _fieldName;
39447
39448 _Fields(short thriftId, String fieldName) {
39449 _thriftId = thriftId;
39450 _fieldName = fieldName;
39451 }
39452
39453 public short getThriftFieldId() {
39454 return _thriftId;
39455 }
39456
39457 public String getFieldName() {
39458 return _fieldName;
39459 }
39460 }
39461
39462
39463 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
39464 static {
39465 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
39466 tmpMap.put(_Fields.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", org.apache.thrift.TFieldRequirementType.DEFAULT,
39467 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
39468 tmpMap.put(_Fields.NAMED_QUERY, new org.apache.thrift.meta_data.FieldMetaData("namedQuery", org.apache.thrift.TFieldRequirementType.DEFAULT,
39469 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
39470 tmpMap.put(_Fields.REVISION, new org.apache.thrift.meta_data.FieldMetaData("revision", org.apache.thrift.TFieldRequirementType.DEFAULT,
39471 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Revision.class)));
39472 metaDataMap = Collections.unmodifiableMap(tmpMap);
39473 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(queryByNamedQuery_args.class, metaDataMap);
39474 }
39475
39476 public queryByNamedQuery_args() {
39477 }
39478
39479 public queryByNamedQuery_args(
39480 String projectName,
39481 String namedQuery,
39482 Revision revision)
39483 {
39484 this();
39485 this.projectName = projectName;
39486 this.namedQuery = namedQuery;
39487 this.revision = revision;
39488 }
39489
39490
39491
39492
39493 public queryByNamedQuery_args(queryByNamedQuery_args other) {
39494 if (other.isSetProjectName()) {
39495 this.projectName = other.projectName;
39496 }
39497 if (other.isSetNamedQuery()) {
39498 this.namedQuery = other.namedQuery;
39499 }
39500 if (other.isSetRevision()) {
39501 this.revision = new Revision(other.revision);
39502 }
39503 }
39504
39505 public queryByNamedQuery_args deepCopy() {
39506 return new queryByNamedQuery_args(this);
39507 }
39508
39509 @Override
39510 public void clear() {
39511 this.projectName = null;
39512 this.namedQuery = null;
39513 this.revision = null;
39514 }
39515
39516 public String getProjectName() {
39517 return this.projectName;
39518 }
39519
39520 public queryByNamedQuery_args setProjectName(String projectName) {
39521 this.projectName = projectName;
39522 return this;
39523 }
39524
39525 public void unsetProjectName() {
39526 this.projectName = null;
39527 }
39528
39529
39530 public boolean isSetProjectName() {
39531 return this.projectName != null;
39532 }
39533
39534 public void setProjectNameIsSet(boolean value) {
39535 if (!value) {
39536 this.projectName = null;
39537 }
39538 }
39539
39540 public String getNamedQuery() {
39541 return this.namedQuery;
39542 }
39543
39544 public queryByNamedQuery_args setNamedQuery(String namedQuery) {
39545 this.namedQuery = namedQuery;
39546 return this;
39547 }
39548
39549 public void unsetNamedQuery() {
39550 this.namedQuery = null;
39551 }
39552
39553
39554 public boolean isSetNamedQuery() {
39555 return this.namedQuery != null;
39556 }
39557
39558 public void setNamedQueryIsSet(boolean value) {
39559 if (!value) {
39560 this.namedQuery = null;
39561 }
39562 }
39563
39564 public Revision getRevision() {
39565 return this.revision;
39566 }
39567
39568 public queryByNamedQuery_args setRevision(Revision revision) {
39569 this.revision = revision;
39570 return this;
39571 }
39572
39573 public void unsetRevision() {
39574 this.revision = null;
39575 }
39576
39577
39578 public boolean isSetRevision() {
39579 return this.revision != null;
39580 }
39581
39582 public void setRevisionIsSet(boolean value) {
39583 if (!value) {
39584 this.revision = null;
39585 }
39586 }
39587
39588 public void setFieldValue(_Fields field, Object value) {
39589 switch (field) {
39590 case PROJECT_NAME:
39591 if (value == null) {
39592 unsetProjectName();
39593 } else {
39594 setProjectName((String)value);
39595 }
39596 break;
39597
39598 case NAMED_QUERY:
39599 if (value == null) {
39600 unsetNamedQuery();
39601 } else {
39602 setNamedQuery((String)value);
39603 }
39604 break;
39605
39606 case REVISION:
39607 if (value == null) {
39608 unsetRevision();
39609 } else {
39610 setRevision((Revision)value);
39611 }
39612 break;
39613
39614 }
39615 }
39616
39617 public Object getFieldValue(_Fields field) {
39618 switch (field) {
39619 case PROJECT_NAME:
39620 return getProjectName();
39621
39622 case NAMED_QUERY:
39623 return getNamedQuery();
39624
39625 case REVISION:
39626 return getRevision();
39627
39628 }
39629 throw new IllegalStateException();
39630 }
39631
39632
39633 public boolean isSet(_Fields field) {
39634 if (field == null) {
39635 throw new IllegalArgumentException();
39636 }
39637
39638 switch (field) {
39639 case PROJECT_NAME:
39640 return isSetProjectName();
39641 case NAMED_QUERY:
39642 return isSetNamedQuery();
39643 case REVISION:
39644 return isSetRevision();
39645 }
39646 throw new IllegalStateException();
39647 }
39648
39649 @Override
39650 public boolean equals(Object that) {
39651 if (that == null)
39652 return false;
39653 if (that instanceof queryByNamedQuery_args)
39654 return this.equals((queryByNamedQuery_args)that);
39655 return false;
39656 }
39657
39658 public boolean equals(queryByNamedQuery_args that) {
39659 if (that == null)
39660 return false;
39661
39662 boolean this_present_projectName = true && this.isSetProjectName();
39663 boolean that_present_projectName = true && that.isSetProjectName();
39664 if (this_present_projectName || that_present_projectName) {
39665 if (!(this_present_projectName && that_present_projectName))
39666 return false;
39667 if (!this.projectName.equals(that.projectName))
39668 return false;
39669 }
39670
39671 boolean this_present_namedQuery = true && this.isSetNamedQuery();
39672 boolean that_present_namedQuery = true && that.isSetNamedQuery();
39673 if (this_present_namedQuery || that_present_namedQuery) {
39674 if (!(this_present_namedQuery && that_present_namedQuery))
39675 return false;
39676 if (!this.namedQuery.equals(that.namedQuery))
39677 return false;
39678 }
39679
39680 boolean this_present_revision = true && this.isSetRevision();
39681 boolean that_present_revision = true && that.isSetRevision();
39682 if (this_present_revision || that_present_revision) {
39683 if (!(this_present_revision && that_present_revision))
39684 return false;
39685 if (!this.revision.equals(that.revision))
39686 return false;
39687 }
39688
39689 return true;
39690 }
39691
39692 @Override
39693 public int hashCode() {
39694 List<Object> list = new ArrayList<Object>();
39695
39696 boolean present_projectName = true && (isSetProjectName());
39697 list.add(present_projectName);
39698 if (present_projectName)
39699 list.add(projectName);
39700
39701 boolean present_namedQuery = true && (isSetNamedQuery());
39702 list.add(present_namedQuery);
39703 if (present_namedQuery)
39704 list.add(namedQuery);
39705
39706 boolean present_revision = true && (isSetRevision());
39707 list.add(present_revision);
39708 if (present_revision)
39709 list.add(revision);
39710
39711 return list.hashCode();
39712 }
39713
39714 @Override
39715 public int compareTo(queryByNamedQuery_args other) {
39716 if (!getClass().equals(other.getClass())) {
39717 return getClass().getName().compareTo(other.getClass().getName());
39718 }
39719
39720 int lastComparison = 0;
39721
39722 lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName());
39723 if (lastComparison != 0) {
39724 return lastComparison;
39725 }
39726 if (isSetProjectName()) {
39727 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName);
39728 if (lastComparison != 0) {
39729 return lastComparison;
39730 }
39731 }
39732 lastComparison = Boolean.valueOf(isSetNamedQuery()).compareTo(other.isSetNamedQuery());
39733 if (lastComparison != 0) {
39734 return lastComparison;
39735 }
39736 if (isSetNamedQuery()) {
39737 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.namedQuery, other.namedQuery);
39738 if (lastComparison != 0) {
39739 return lastComparison;
39740 }
39741 }
39742 lastComparison = Boolean.valueOf(isSetRevision()).compareTo(other.isSetRevision());
39743 if (lastComparison != 0) {
39744 return lastComparison;
39745 }
39746 if (isSetRevision()) {
39747 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.revision, other.revision);
39748 if (lastComparison != 0) {
39749 return lastComparison;
39750 }
39751 }
39752 return 0;
39753 }
39754
39755 public _Fields fieldForId(int fieldId) {
39756 return _Fields.findByThriftId(fieldId);
39757 }
39758
39759 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
39760 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
39761 }
39762
39763 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
39764 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
39765 }
39766
39767 @Override
39768 public String toString() {
39769 StringBuilder sb = new StringBuilder("queryByNamedQuery_args(");
39770 boolean first = true;
39771
39772 sb.append("projectName:");
39773 if (this.projectName == null) {
39774 sb.append("null");
39775 } else {
39776 sb.append(this.projectName);
39777 }
39778 first = false;
39779 if (!first) sb.append(", ");
39780 sb.append("namedQuery:");
39781 if (this.namedQuery == null) {
39782 sb.append("null");
39783 } else {
39784 sb.append(this.namedQuery);
39785 }
39786 first = false;
39787 if (!first) sb.append(", ");
39788 sb.append("revision:");
39789 if (this.revision == null) {
39790 sb.append("null");
39791 } else {
39792 sb.append(this.revision);
39793 }
39794 first = false;
39795 sb.append(")");
39796 return sb.toString();
39797 }
39798
39799 public void validate() throws org.apache.thrift.TException {
39800
39801
39802 if (revision != null) {
39803 revision.validate();
39804 }
39805 }
39806
39807 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
39808 try {
39809 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
39810 } catch (org.apache.thrift.TException te) {
39811 throw new java.io.IOException(te);
39812 }
39813 }
39814
39815 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
39816 try {
39817 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
39818 } catch (org.apache.thrift.TException te) {
39819 throw new java.io.IOException(te);
39820 }
39821 }
39822
39823 private static class queryByNamedQuery_argsStandardSchemeFactory implements SchemeFactory {
39824 public queryByNamedQuery_argsStandardScheme getScheme() {
39825 return new queryByNamedQuery_argsStandardScheme();
39826 }
39827 }
39828
39829 private static class queryByNamedQuery_argsStandardScheme extends StandardScheme<queryByNamedQuery_args> {
39830
39831 public void read(org.apache.thrift.protocol.TProtocol iprot, queryByNamedQuery_args struct) throws org.apache.thrift.TException {
39832 org.apache.thrift.protocol.TField schemeField;
39833 iprot.readStructBegin();
39834 while (true)
39835 {
39836 schemeField = iprot.readFieldBegin();
39837 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
39838 break;
39839 }
39840 switch (schemeField.id) {
39841 case 1:
39842 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
39843 struct.projectName = iprot.readString();
39844 struct.setProjectNameIsSet(true);
39845 } else {
39846 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
39847 }
39848 break;
39849 case 2:
39850 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
39851 struct.namedQuery = iprot.readString();
39852 struct.setNamedQueryIsSet(true);
39853 } else {
39854 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
39855 }
39856 break;
39857 case 3:
39858 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
39859 struct.revision = new Revision();
39860 struct.revision.read(iprot);
39861 struct.setRevisionIsSet(true);
39862 } else {
39863 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
39864 }
39865 break;
39866 default:
39867 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
39868 }
39869 iprot.readFieldEnd();
39870 }
39871 iprot.readStructEnd();
39872
39873
39874 struct.validate();
39875 }
39876
39877 public void write(org.apache.thrift.protocol.TProtocol oprot, queryByNamedQuery_args struct) throws org.apache.thrift.TException {
39878 struct.validate();
39879
39880 oprot.writeStructBegin(STRUCT_DESC);
39881 if (struct.projectName != null) {
39882 oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC);
39883 oprot.writeString(struct.projectName);
39884 oprot.writeFieldEnd();
39885 }
39886 if (struct.namedQuery != null) {
39887 oprot.writeFieldBegin(NAMED_QUERY_FIELD_DESC);
39888 oprot.writeString(struct.namedQuery);
39889 oprot.writeFieldEnd();
39890 }
39891 if (struct.revision != null) {
39892 oprot.writeFieldBegin(REVISION_FIELD_DESC);
39893 struct.revision.write(oprot);
39894 oprot.writeFieldEnd();
39895 }
39896 oprot.writeFieldStop();
39897 oprot.writeStructEnd();
39898 }
39899
39900 }
39901
39902 private static class queryByNamedQuery_argsTupleSchemeFactory implements SchemeFactory {
39903 public queryByNamedQuery_argsTupleScheme getScheme() {
39904 return new queryByNamedQuery_argsTupleScheme();
39905 }
39906 }
39907
39908 private static class queryByNamedQuery_argsTupleScheme extends TupleScheme<queryByNamedQuery_args> {
39909
39910 @Override
39911 public void write(org.apache.thrift.protocol.TProtocol prot, queryByNamedQuery_args struct) throws org.apache.thrift.TException {
39912 TTupleProtocol oprot = (TTupleProtocol) prot;
39913 BitSet optionals = new BitSet();
39914 if (struct.isSetProjectName()) {
39915 optionals.set(0);
39916 }
39917 if (struct.isSetNamedQuery()) {
39918 optionals.set(1);
39919 }
39920 if (struct.isSetRevision()) {
39921 optionals.set(2);
39922 }
39923 oprot.writeBitSet(optionals, 3);
39924 if (struct.isSetProjectName()) {
39925 oprot.writeString(struct.projectName);
39926 }
39927 if (struct.isSetNamedQuery()) {
39928 oprot.writeString(struct.namedQuery);
39929 }
39930 if (struct.isSetRevision()) {
39931 struct.revision.write(oprot);
39932 }
39933 }
39934
39935 @Override
39936 public void read(org.apache.thrift.protocol.TProtocol prot, queryByNamedQuery_args struct) throws org.apache.thrift.TException {
39937 TTupleProtocol iprot = (TTupleProtocol) prot;
39938 BitSet incoming = iprot.readBitSet(3);
39939 if (incoming.get(0)) {
39940 struct.projectName = iprot.readString();
39941 struct.setProjectNameIsSet(true);
39942 }
39943 if (incoming.get(1)) {
39944 struct.namedQuery = iprot.readString();
39945 struct.setNamedQueryIsSet(true);
39946 }
39947 if (incoming.get(2)) {
39948 struct.revision = new Revision();
39949 struct.revision.read(iprot);
39950 struct.setRevisionIsSet(true);
39951 }
39952 }
39953 }
39954
39955 }
39956
39957 public static class queryByNamedQuery_result implements org.apache.thrift.TBase<queryByNamedQuery_result, queryByNamedQuery_result._Fields>, java.io.Serializable, Cloneable, Comparable<queryByNamedQuery_result> {
39958 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("queryByNamedQuery_result");
39959
39960 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRING, (short)0);
39961 private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
39962
39963 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
39964 static {
39965 schemes.put(StandardScheme.class, new queryByNamedQuery_resultStandardSchemeFactory());
39966 schemes.put(TupleScheme.class, new queryByNamedQuery_resultTupleSchemeFactory());
39967 }
39968
39969 public String success;
39970 public CentralDogmaException e;
39971
39972
39973 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
39974 SUCCESS((short)0, "success"),
39975 E((short)1, "e");
39976
39977 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
39978
39979 static {
39980 for (_Fields field : EnumSet.allOf(_Fields.class)) {
39981 byName.put(field.getFieldName(), field);
39982 }
39983 }
39984
39985
39986
39987
39988 public static _Fields findByThriftId(int fieldId) {
39989 switch(fieldId) {
39990 case 0:
39991 return SUCCESS;
39992 case 1:
39993 return E;
39994 default:
39995 return null;
39996 }
39997 }
39998
39999
40000
40001
40002
40003 public static _Fields findByThriftIdOrThrow(int fieldId) {
40004 _Fields fields = findByThriftId(fieldId);
40005 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
40006 return fields;
40007 }
40008
40009
40010
40011
40012 public static _Fields findByName(String name) {
40013 return byName.get(name);
40014 }
40015
40016 private final short _thriftId;
40017 private final String _fieldName;
40018
40019 _Fields(short thriftId, String fieldName) {
40020 _thriftId = thriftId;
40021 _fieldName = fieldName;
40022 }
40023
40024 public short getThriftFieldId() {
40025 return _thriftId;
40026 }
40027
40028 public String getFieldName() {
40029 return _fieldName;
40030 }
40031 }
40032
40033
40034 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
40035 static {
40036 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
40037 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
40038 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
40039 tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
40040 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
40041 metaDataMap = Collections.unmodifiableMap(tmpMap);
40042 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(queryByNamedQuery_result.class, metaDataMap);
40043 }
40044
40045 public queryByNamedQuery_result() {
40046 }
40047
40048 public queryByNamedQuery_result(
40049 String success,
40050 CentralDogmaException e)
40051 {
40052 this();
40053 this.success = success;
40054 this.e = e;
40055 }
40056
40057
40058
40059
40060 public queryByNamedQuery_result(queryByNamedQuery_result other) {
40061 if (other.isSetSuccess()) {
40062 this.success = other.success;
40063 }
40064 if (other.isSetE()) {
40065 this.e = new CentralDogmaException(other.e);
40066 }
40067 }
40068
40069 public queryByNamedQuery_result deepCopy() {
40070 return new queryByNamedQuery_result(this);
40071 }
40072
40073 @Override
40074 public void clear() {
40075 this.success = null;
40076 this.e = null;
40077 }
40078
40079 public String getSuccess() {
40080 return this.success;
40081 }
40082
40083 public queryByNamedQuery_result setSuccess(String success) {
40084 this.success = success;
40085 return this;
40086 }
40087
40088 public void unsetSuccess() {
40089 this.success = null;
40090 }
40091
40092
40093 public boolean isSetSuccess() {
40094 return this.success != null;
40095 }
40096
40097 public void setSuccessIsSet(boolean value) {
40098 if (!value) {
40099 this.success = null;
40100 }
40101 }
40102
40103 public CentralDogmaException getE() {
40104 return this.e;
40105 }
40106
40107 public queryByNamedQuery_result setE(CentralDogmaException e) {
40108 this.e = e;
40109 return this;
40110 }
40111
40112 public void unsetE() {
40113 this.e = null;
40114 }
40115
40116
40117 public boolean isSetE() {
40118 return this.e != null;
40119 }
40120
40121 public void setEIsSet(boolean value) {
40122 if (!value) {
40123 this.e = null;
40124 }
40125 }
40126
40127 public void setFieldValue(_Fields field, Object value) {
40128 switch (field) {
40129 case SUCCESS:
40130 if (value == null) {
40131 unsetSuccess();
40132 } else {
40133 setSuccess((String)value);
40134 }
40135 break;
40136
40137 case E:
40138 if (value == null) {
40139 unsetE();
40140 } else {
40141 setE((CentralDogmaException)value);
40142 }
40143 break;
40144
40145 }
40146 }
40147
40148 public Object getFieldValue(_Fields field) {
40149 switch (field) {
40150 case SUCCESS:
40151 return getSuccess();
40152
40153 case E:
40154 return getE();
40155
40156 }
40157 throw new IllegalStateException();
40158 }
40159
40160
40161 public boolean isSet(_Fields field) {
40162 if (field == null) {
40163 throw new IllegalArgumentException();
40164 }
40165
40166 switch (field) {
40167 case SUCCESS:
40168 return isSetSuccess();
40169 case E:
40170 return isSetE();
40171 }
40172 throw new IllegalStateException();
40173 }
40174
40175 @Override
40176 public boolean equals(Object that) {
40177 if (that == null)
40178 return false;
40179 if (that instanceof queryByNamedQuery_result)
40180 return this.equals((queryByNamedQuery_result)that);
40181 return false;
40182 }
40183
40184 public boolean equals(queryByNamedQuery_result that) {
40185 if (that == null)
40186 return false;
40187
40188 boolean this_present_success = true && this.isSetSuccess();
40189 boolean that_present_success = true && that.isSetSuccess();
40190 if (this_present_success || that_present_success) {
40191 if (!(this_present_success && that_present_success))
40192 return false;
40193 if (!this.success.equals(that.success))
40194 return false;
40195 }
40196
40197 boolean this_present_e = true && this.isSetE();
40198 boolean that_present_e = true && that.isSetE();
40199 if (this_present_e || that_present_e) {
40200 if (!(this_present_e && that_present_e))
40201 return false;
40202 if (!this.e.equals(that.e))
40203 return false;
40204 }
40205
40206 return true;
40207 }
40208
40209 @Override
40210 public int hashCode() {
40211 List<Object> list = new ArrayList<Object>();
40212
40213 boolean present_success = true && (isSetSuccess());
40214 list.add(present_success);
40215 if (present_success)
40216 list.add(success);
40217
40218 boolean present_e = true && (isSetE());
40219 list.add(present_e);
40220 if (present_e)
40221 list.add(e);
40222
40223 return list.hashCode();
40224 }
40225
40226 @Override
40227 public int compareTo(queryByNamedQuery_result other) {
40228 if (!getClass().equals(other.getClass())) {
40229 return getClass().getName().compareTo(other.getClass().getName());
40230 }
40231
40232 int lastComparison = 0;
40233
40234 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
40235 if (lastComparison != 0) {
40236 return lastComparison;
40237 }
40238 if (isSetSuccess()) {
40239 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
40240 if (lastComparison != 0) {
40241 return lastComparison;
40242 }
40243 }
40244 lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE());
40245 if (lastComparison != 0) {
40246 return lastComparison;
40247 }
40248 if (isSetE()) {
40249 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e);
40250 if (lastComparison != 0) {
40251 return lastComparison;
40252 }
40253 }
40254 return 0;
40255 }
40256
40257 public _Fields fieldForId(int fieldId) {
40258 return _Fields.findByThriftId(fieldId);
40259 }
40260
40261 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
40262 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
40263 }
40264
40265 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
40266 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
40267 }
40268
40269 @Override
40270 public String toString() {
40271 StringBuilder sb = new StringBuilder("queryByNamedQuery_result(");
40272 boolean first = true;
40273
40274 sb.append("success:");
40275 if (this.success == null) {
40276 sb.append("null");
40277 } else {
40278 sb.append(this.success);
40279 }
40280 first = false;
40281 if (!first) sb.append(", ");
40282 sb.append("e:");
40283 if (this.e == null) {
40284 sb.append("null");
40285 } else {
40286 sb.append(this.e);
40287 }
40288 first = false;
40289 sb.append(")");
40290 return sb.toString();
40291 }
40292
40293 public void validate() throws org.apache.thrift.TException {
40294
40295
40296 }
40297
40298 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
40299 try {
40300 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
40301 } catch (org.apache.thrift.TException te) {
40302 throw new java.io.IOException(te);
40303 }
40304 }
40305
40306 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
40307 try {
40308 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
40309 } catch (org.apache.thrift.TException te) {
40310 throw new java.io.IOException(te);
40311 }
40312 }
40313
40314 private static class queryByNamedQuery_resultStandardSchemeFactory implements SchemeFactory {
40315 public queryByNamedQuery_resultStandardScheme getScheme() {
40316 return new queryByNamedQuery_resultStandardScheme();
40317 }
40318 }
40319
40320 private static class queryByNamedQuery_resultStandardScheme extends StandardScheme<queryByNamedQuery_result> {
40321
40322 public void read(org.apache.thrift.protocol.TProtocol iprot, queryByNamedQuery_result struct) throws org.apache.thrift.TException {
40323 org.apache.thrift.protocol.TField schemeField;
40324 iprot.readStructBegin();
40325 while (true)
40326 {
40327 schemeField = iprot.readFieldBegin();
40328 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
40329 break;
40330 }
40331 switch (schemeField.id) {
40332 case 0:
40333 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
40334 struct.success = iprot.readString();
40335 struct.setSuccessIsSet(true);
40336 } else {
40337 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
40338 }
40339 break;
40340 case 1:
40341 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
40342 struct.e = new CentralDogmaException();
40343 struct.e.read(iprot);
40344 struct.setEIsSet(true);
40345 } else {
40346 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
40347 }
40348 break;
40349 default:
40350 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
40351 }
40352 iprot.readFieldEnd();
40353 }
40354 iprot.readStructEnd();
40355
40356
40357 struct.validate();
40358 }
40359
40360 public void write(org.apache.thrift.protocol.TProtocol oprot, queryByNamedQuery_result struct) throws org.apache.thrift.TException {
40361 struct.validate();
40362
40363 oprot.writeStructBegin(STRUCT_DESC);
40364 if (struct.success != null) {
40365 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
40366 oprot.writeString(struct.success);
40367 oprot.writeFieldEnd();
40368 }
40369 if (struct.e != null) {
40370 oprot.writeFieldBegin(E_FIELD_DESC);
40371 struct.e.write(oprot);
40372 oprot.writeFieldEnd();
40373 }
40374 oprot.writeFieldStop();
40375 oprot.writeStructEnd();
40376 }
40377
40378 }
40379
40380 private static class queryByNamedQuery_resultTupleSchemeFactory implements SchemeFactory {
40381 public queryByNamedQuery_resultTupleScheme getScheme() {
40382 return new queryByNamedQuery_resultTupleScheme();
40383 }
40384 }
40385
40386 private static class queryByNamedQuery_resultTupleScheme extends TupleScheme<queryByNamedQuery_result> {
40387
40388 @Override
40389 public void write(org.apache.thrift.protocol.TProtocol prot, queryByNamedQuery_result struct) throws org.apache.thrift.TException {
40390 TTupleProtocol oprot = (TTupleProtocol) prot;
40391 BitSet optionals = new BitSet();
40392 if (struct.isSetSuccess()) {
40393 optionals.set(0);
40394 }
40395 if (struct.isSetE()) {
40396 optionals.set(1);
40397 }
40398 oprot.writeBitSet(optionals, 2);
40399 if (struct.isSetSuccess()) {
40400 oprot.writeString(struct.success);
40401 }
40402 if (struct.isSetE()) {
40403 struct.e.write(oprot);
40404 }
40405 }
40406
40407 @Override
40408 public void read(org.apache.thrift.protocol.TProtocol prot, queryByNamedQuery_result struct) throws org.apache.thrift.TException {
40409 TTupleProtocol iprot = (TTupleProtocol) prot;
40410 BitSet incoming = iprot.readBitSet(2);
40411 if (incoming.get(0)) {
40412 struct.success = iprot.readString();
40413 struct.setSuccessIsSet(true);
40414 }
40415 if (incoming.get(1)) {
40416 struct.e = new CentralDogmaException();
40417 struct.e.read(iprot);
40418 struct.setEIsSet(true);
40419 }
40420 }
40421 }
40422
40423 }
40424
40425 public static class listSubscribers_args implements org.apache.thrift.TBase<listSubscribers_args, listSubscribers_args._Fields>, java.io.Serializable, Cloneable, Comparable<listSubscribers_args> {
40426 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("listSubscribers_args");
40427
40428 private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)1);
40429 private static final org.apache.thrift.protocol.TField REPOSITORY_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("repositoryName", org.apache.thrift.protocol.TType.STRING, (short)2);
40430 private static final org.apache.thrift.protocol.TField PATH_FIELD_DESC = new org.apache.thrift.protocol.TField("path", org.apache.thrift.protocol.TType.STRING, (short)3);
40431
40432 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
40433 static {
40434 schemes.put(StandardScheme.class, new listSubscribers_argsStandardSchemeFactory());
40435 schemes.put(TupleScheme.class, new listSubscribers_argsTupleSchemeFactory());
40436 }
40437
40438 public String projectName;
40439 public String repositoryName;
40440 public String path;
40441
40442
40443 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
40444 PROJECT_NAME((short)1, "projectName"),
40445 REPOSITORY_NAME((short)2, "repositoryName"),
40446 PATH((short)3, "path");
40447
40448 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
40449
40450 static {
40451 for (_Fields field : EnumSet.allOf(_Fields.class)) {
40452 byName.put(field.getFieldName(), field);
40453 }
40454 }
40455
40456
40457
40458
40459 public static _Fields findByThriftId(int fieldId) {
40460 switch(fieldId) {
40461 case 1:
40462 return PROJECT_NAME;
40463 case 2:
40464 return REPOSITORY_NAME;
40465 case 3:
40466 return PATH;
40467 default:
40468 return null;
40469 }
40470 }
40471
40472
40473
40474
40475
40476 public static _Fields findByThriftIdOrThrow(int fieldId) {
40477 _Fields fields = findByThriftId(fieldId);
40478 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
40479 return fields;
40480 }
40481
40482
40483
40484
40485 public static _Fields findByName(String name) {
40486 return byName.get(name);
40487 }
40488
40489 private final short _thriftId;
40490 private final String _fieldName;
40491
40492 _Fields(short thriftId, String fieldName) {
40493 _thriftId = thriftId;
40494 _fieldName = fieldName;
40495 }
40496
40497 public short getThriftFieldId() {
40498 return _thriftId;
40499 }
40500
40501 public String getFieldName() {
40502 return _fieldName;
40503 }
40504 }
40505
40506
40507 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
40508 static {
40509 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
40510 tmpMap.put(_Fields.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", org.apache.thrift.TFieldRequirementType.DEFAULT,
40511 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
40512 tmpMap.put(_Fields.REPOSITORY_NAME, new org.apache.thrift.meta_data.FieldMetaData("repositoryName", org.apache.thrift.TFieldRequirementType.DEFAULT,
40513 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
40514 tmpMap.put(_Fields.PATH, new org.apache.thrift.meta_data.FieldMetaData("path", org.apache.thrift.TFieldRequirementType.DEFAULT,
40515 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "EntryPath")));
40516 metaDataMap = Collections.unmodifiableMap(tmpMap);
40517 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(listSubscribers_args.class, metaDataMap);
40518 }
40519
40520 public listSubscribers_args() {
40521 }
40522
40523 public listSubscribers_args(
40524 String projectName,
40525 String repositoryName,
40526 String path)
40527 {
40528 this();
40529 this.projectName = projectName;
40530 this.repositoryName = repositoryName;
40531 this.path = path;
40532 }
40533
40534
40535
40536
40537 public listSubscribers_args(listSubscribers_args other) {
40538 if (other.isSetProjectName()) {
40539 this.projectName = other.projectName;
40540 }
40541 if (other.isSetRepositoryName()) {
40542 this.repositoryName = other.repositoryName;
40543 }
40544 if (other.isSetPath()) {
40545 this.path = other.path;
40546 }
40547 }
40548
40549 public listSubscribers_args deepCopy() {
40550 return new listSubscribers_args(this);
40551 }
40552
40553 @Override
40554 public void clear() {
40555 this.projectName = null;
40556 this.repositoryName = null;
40557 this.path = null;
40558 }
40559
40560 public String getProjectName() {
40561 return this.projectName;
40562 }
40563
40564 public listSubscribers_args setProjectName(String projectName) {
40565 this.projectName = projectName;
40566 return this;
40567 }
40568
40569 public void unsetProjectName() {
40570 this.projectName = null;
40571 }
40572
40573
40574 public boolean isSetProjectName() {
40575 return this.projectName != null;
40576 }
40577
40578 public void setProjectNameIsSet(boolean value) {
40579 if (!value) {
40580 this.projectName = null;
40581 }
40582 }
40583
40584 public String getRepositoryName() {
40585 return this.repositoryName;
40586 }
40587
40588 public listSubscribers_args setRepositoryName(String repositoryName) {
40589 this.repositoryName = repositoryName;
40590 return this;
40591 }
40592
40593 public void unsetRepositoryName() {
40594 this.repositoryName = null;
40595 }
40596
40597
40598 public boolean isSetRepositoryName() {
40599 return this.repositoryName != null;
40600 }
40601
40602 public void setRepositoryNameIsSet(boolean value) {
40603 if (!value) {
40604 this.repositoryName = null;
40605 }
40606 }
40607
40608 public String getPath() {
40609 return this.path;
40610 }
40611
40612 public listSubscribers_args setPath(String path) {
40613 this.path = path;
40614 return this;
40615 }
40616
40617 public void unsetPath() {
40618 this.path = null;
40619 }
40620
40621
40622 public boolean isSetPath() {
40623 return this.path != null;
40624 }
40625
40626 public void setPathIsSet(boolean value) {
40627 if (!value) {
40628 this.path = null;
40629 }
40630 }
40631
40632 public void setFieldValue(_Fields field, Object value) {
40633 switch (field) {
40634 case PROJECT_NAME:
40635 if (value == null) {
40636 unsetProjectName();
40637 } else {
40638 setProjectName((String)value);
40639 }
40640 break;
40641
40642 case REPOSITORY_NAME:
40643 if (value == null) {
40644 unsetRepositoryName();
40645 } else {
40646 setRepositoryName((String)value);
40647 }
40648 break;
40649
40650 case PATH:
40651 if (value == null) {
40652 unsetPath();
40653 } else {
40654 setPath((String)value);
40655 }
40656 break;
40657
40658 }
40659 }
40660
40661 public Object getFieldValue(_Fields field) {
40662 switch (field) {
40663 case PROJECT_NAME:
40664 return getProjectName();
40665
40666 case REPOSITORY_NAME:
40667 return getRepositoryName();
40668
40669 case PATH:
40670 return getPath();
40671
40672 }
40673 throw new IllegalStateException();
40674 }
40675
40676
40677 public boolean isSet(_Fields field) {
40678 if (field == null) {
40679 throw new IllegalArgumentException();
40680 }
40681
40682 switch (field) {
40683 case PROJECT_NAME:
40684 return isSetProjectName();
40685 case REPOSITORY_NAME:
40686 return isSetRepositoryName();
40687 case PATH:
40688 return isSetPath();
40689 }
40690 throw new IllegalStateException();
40691 }
40692
40693 @Override
40694 public boolean equals(Object that) {
40695 if (that == null)
40696 return false;
40697 if (that instanceof listSubscribers_args)
40698 return this.equals((listSubscribers_args)that);
40699 return false;
40700 }
40701
40702 public boolean equals(listSubscribers_args that) {
40703 if (that == null)
40704 return false;
40705
40706 boolean this_present_projectName = true && this.isSetProjectName();
40707 boolean that_present_projectName = true && that.isSetProjectName();
40708 if (this_present_projectName || that_present_projectName) {
40709 if (!(this_present_projectName && that_present_projectName))
40710 return false;
40711 if (!this.projectName.equals(that.projectName))
40712 return false;
40713 }
40714
40715 boolean this_present_repositoryName = true && this.isSetRepositoryName();
40716 boolean that_present_repositoryName = true && that.isSetRepositoryName();
40717 if (this_present_repositoryName || that_present_repositoryName) {
40718 if (!(this_present_repositoryName && that_present_repositoryName))
40719 return false;
40720 if (!this.repositoryName.equals(that.repositoryName))
40721 return false;
40722 }
40723
40724 boolean this_present_path = true && this.isSetPath();
40725 boolean that_present_path = true && that.isSetPath();
40726 if (this_present_path || that_present_path) {
40727 if (!(this_present_path && that_present_path))
40728 return false;
40729 if (!this.path.equals(that.path))
40730 return false;
40731 }
40732
40733 return true;
40734 }
40735
40736 @Override
40737 public int hashCode() {
40738 List<Object> list = new ArrayList<Object>();
40739
40740 boolean present_projectName = true && (isSetProjectName());
40741 list.add(present_projectName);
40742 if (present_projectName)
40743 list.add(projectName);
40744
40745 boolean present_repositoryName = true && (isSetRepositoryName());
40746 list.add(present_repositoryName);
40747 if (present_repositoryName)
40748 list.add(repositoryName);
40749
40750 boolean present_path = true && (isSetPath());
40751 list.add(present_path);
40752 if (present_path)
40753 list.add(path);
40754
40755 return list.hashCode();
40756 }
40757
40758 @Override
40759 public int compareTo(listSubscribers_args other) {
40760 if (!getClass().equals(other.getClass())) {
40761 return getClass().getName().compareTo(other.getClass().getName());
40762 }
40763
40764 int lastComparison = 0;
40765
40766 lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName());
40767 if (lastComparison != 0) {
40768 return lastComparison;
40769 }
40770 if (isSetProjectName()) {
40771 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName);
40772 if (lastComparison != 0) {
40773 return lastComparison;
40774 }
40775 }
40776 lastComparison = Boolean.valueOf(isSetRepositoryName()).compareTo(other.isSetRepositoryName());
40777 if (lastComparison != 0) {
40778 return lastComparison;
40779 }
40780 if (isSetRepositoryName()) {
40781 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.repositoryName, other.repositoryName);
40782 if (lastComparison != 0) {
40783 return lastComparison;
40784 }
40785 }
40786 lastComparison = Boolean.valueOf(isSetPath()).compareTo(other.isSetPath());
40787 if (lastComparison != 0) {
40788 return lastComparison;
40789 }
40790 if (isSetPath()) {
40791 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.path, other.path);
40792 if (lastComparison != 0) {
40793 return lastComparison;
40794 }
40795 }
40796 return 0;
40797 }
40798
40799 public _Fields fieldForId(int fieldId) {
40800 return _Fields.findByThriftId(fieldId);
40801 }
40802
40803 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
40804 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
40805 }
40806
40807 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
40808 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
40809 }
40810
40811 @Override
40812 public String toString() {
40813 StringBuilder sb = new StringBuilder("listSubscribers_args(");
40814 boolean first = true;
40815
40816 sb.append("projectName:");
40817 if (this.projectName == null) {
40818 sb.append("null");
40819 } else {
40820 sb.append(this.projectName);
40821 }
40822 first = false;
40823 if (!first) sb.append(", ");
40824 sb.append("repositoryName:");
40825 if (this.repositoryName == null) {
40826 sb.append("null");
40827 } else {
40828 sb.append(this.repositoryName);
40829 }
40830 first = false;
40831 if (!first) sb.append(", ");
40832 sb.append("path:");
40833 if (this.path == null) {
40834 sb.append("null");
40835 } else {
40836 sb.append(this.path);
40837 }
40838 first = false;
40839 sb.append(")");
40840 return sb.toString();
40841 }
40842
40843 public void validate() throws org.apache.thrift.TException {
40844
40845
40846 }
40847
40848 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
40849 try {
40850 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
40851 } catch (org.apache.thrift.TException te) {
40852 throw new java.io.IOException(te);
40853 }
40854 }
40855
40856 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
40857 try {
40858 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
40859 } catch (org.apache.thrift.TException te) {
40860 throw new java.io.IOException(te);
40861 }
40862 }
40863
40864 private static class listSubscribers_argsStandardSchemeFactory implements SchemeFactory {
40865 public listSubscribers_argsStandardScheme getScheme() {
40866 return new listSubscribers_argsStandardScheme();
40867 }
40868 }
40869
40870 private static class listSubscribers_argsStandardScheme extends StandardScheme<listSubscribers_args> {
40871
40872 public void read(org.apache.thrift.protocol.TProtocol iprot, listSubscribers_args struct) throws org.apache.thrift.TException {
40873 org.apache.thrift.protocol.TField schemeField;
40874 iprot.readStructBegin();
40875 while (true)
40876 {
40877 schemeField = iprot.readFieldBegin();
40878 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
40879 break;
40880 }
40881 switch (schemeField.id) {
40882 case 1:
40883 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
40884 struct.projectName = iprot.readString();
40885 struct.setProjectNameIsSet(true);
40886 } else {
40887 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
40888 }
40889 break;
40890 case 2:
40891 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
40892 struct.repositoryName = iprot.readString();
40893 struct.setRepositoryNameIsSet(true);
40894 } else {
40895 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
40896 }
40897 break;
40898 case 3:
40899 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
40900 struct.path = iprot.readString();
40901 struct.setPathIsSet(true);
40902 } else {
40903 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
40904 }
40905 break;
40906 default:
40907 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
40908 }
40909 iprot.readFieldEnd();
40910 }
40911 iprot.readStructEnd();
40912
40913
40914 struct.validate();
40915 }
40916
40917 public void write(org.apache.thrift.protocol.TProtocol oprot, listSubscribers_args struct) throws org.apache.thrift.TException {
40918 struct.validate();
40919
40920 oprot.writeStructBegin(STRUCT_DESC);
40921 if (struct.projectName != null) {
40922 oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC);
40923 oprot.writeString(struct.projectName);
40924 oprot.writeFieldEnd();
40925 }
40926 if (struct.repositoryName != null) {
40927 oprot.writeFieldBegin(REPOSITORY_NAME_FIELD_DESC);
40928 oprot.writeString(struct.repositoryName);
40929 oprot.writeFieldEnd();
40930 }
40931 if (struct.path != null) {
40932 oprot.writeFieldBegin(PATH_FIELD_DESC);
40933 oprot.writeString(struct.path);
40934 oprot.writeFieldEnd();
40935 }
40936 oprot.writeFieldStop();
40937 oprot.writeStructEnd();
40938 }
40939
40940 }
40941
40942 private static class listSubscribers_argsTupleSchemeFactory implements SchemeFactory {
40943 public listSubscribers_argsTupleScheme getScheme() {
40944 return new listSubscribers_argsTupleScheme();
40945 }
40946 }
40947
40948 private static class listSubscribers_argsTupleScheme extends TupleScheme<listSubscribers_args> {
40949
40950 @Override
40951 public void write(org.apache.thrift.protocol.TProtocol prot, listSubscribers_args struct) throws org.apache.thrift.TException {
40952 TTupleProtocol oprot = (TTupleProtocol) prot;
40953 BitSet optionals = new BitSet();
40954 if (struct.isSetProjectName()) {
40955 optionals.set(0);
40956 }
40957 if (struct.isSetRepositoryName()) {
40958 optionals.set(1);
40959 }
40960 if (struct.isSetPath()) {
40961 optionals.set(2);
40962 }
40963 oprot.writeBitSet(optionals, 3);
40964 if (struct.isSetProjectName()) {
40965 oprot.writeString(struct.projectName);
40966 }
40967 if (struct.isSetRepositoryName()) {
40968 oprot.writeString(struct.repositoryName);
40969 }
40970 if (struct.isSetPath()) {
40971 oprot.writeString(struct.path);
40972 }
40973 }
40974
40975 @Override
40976 public void read(org.apache.thrift.protocol.TProtocol prot, listSubscribers_args struct) throws org.apache.thrift.TException {
40977 TTupleProtocol iprot = (TTupleProtocol) prot;
40978 BitSet incoming = iprot.readBitSet(3);
40979 if (incoming.get(0)) {
40980 struct.projectName = iprot.readString();
40981 struct.setProjectNameIsSet(true);
40982 }
40983 if (incoming.get(1)) {
40984 struct.repositoryName = iprot.readString();
40985 struct.setRepositoryNameIsSet(true);
40986 }
40987 if (incoming.get(2)) {
40988 struct.path = iprot.readString();
40989 struct.setPathIsSet(true);
40990 }
40991 }
40992 }
40993
40994 }
40995
40996 public static class listSubscribers_result implements org.apache.thrift.TBase<listSubscribers_result, listSubscribers_result._Fields>, java.io.Serializable, Cloneable, Comparable<listSubscribers_result> {
40997 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("listSubscribers_result");
40998
40999 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
41000 private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
41001
41002 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
41003 static {
41004 schemes.put(StandardScheme.class, new listSubscribers_resultStandardSchemeFactory());
41005 schemes.put(TupleScheme.class, new listSubscribers_resultTupleSchemeFactory());
41006 }
41007
41008 public List<Subscriber> success;
41009 public CentralDogmaException e;
41010
41011
41012 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
41013 SUCCESS((short)0, "success"),
41014 E((short)1, "e");
41015
41016 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
41017
41018 static {
41019 for (_Fields field : EnumSet.allOf(_Fields.class)) {
41020 byName.put(field.getFieldName(), field);
41021 }
41022 }
41023
41024
41025
41026
41027 public static _Fields findByThriftId(int fieldId) {
41028 switch(fieldId) {
41029 case 0:
41030 return SUCCESS;
41031 case 1:
41032 return E;
41033 default:
41034 return null;
41035 }
41036 }
41037
41038
41039
41040
41041
41042 public static _Fields findByThriftIdOrThrow(int fieldId) {
41043 _Fields fields = findByThriftId(fieldId);
41044 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
41045 return fields;
41046 }
41047
41048
41049
41050
41051 public static _Fields findByName(String name) {
41052 return byName.get(name);
41053 }
41054
41055 private final short _thriftId;
41056 private final String _fieldName;
41057
41058 _Fields(short thriftId, String fieldName) {
41059 _thriftId = thriftId;
41060 _fieldName = fieldName;
41061 }
41062
41063 public short getThriftFieldId() {
41064 return _thriftId;
41065 }
41066
41067 public String getFieldName() {
41068 return _fieldName;
41069 }
41070 }
41071
41072
41073 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
41074 static {
41075 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
41076 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
41077 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
41078 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Subscriber.class))));
41079 tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
41080 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
41081 metaDataMap = Collections.unmodifiableMap(tmpMap);
41082 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(listSubscribers_result.class, metaDataMap);
41083 }
41084
41085 public listSubscribers_result() {
41086 }
41087
41088 public listSubscribers_result(
41089 List<Subscriber> success,
41090 CentralDogmaException e)
41091 {
41092 this();
41093 this.success = success;
41094 this.e = e;
41095 }
41096
41097
41098
41099
41100 public listSubscribers_result(listSubscribers_result other) {
41101 if (other.isSetSuccess()) {
41102 List<Subscriber> __this__success = new ArrayList<Subscriber>(other.success.size());
41103 for (Subscriber other_element : other.success) {
41104 __this__success.add(new Subscriber(other_element));
41105 }
41106 this.success = __this__success;
41107 }
41108 if (other.isSetE()) {
41109 this.e = new CentralDogmaException(other.e);
41110 }
41111 }
41112
41113 public listSubscribers_result deepCopy() {
41114 return new listSubscribers_result(this);
41115 }
41116
41117 @Override
41118 public void clear() {
41119 this.success = null;
41120 this.e = null;
41121 }
41122
41123 public int getSuccessSize() {
41124 return (this.success == null) ? 0 : this.success.size();
41125 }
41126
41127 public java.util.Iterator<Subscriber> getSuccessIterator() {
41128 return (this.success == null) ? null : this.success.iterator();
41129 }
41130
41131 public void addToSuccess(Subscriber elem) {
41132 if (this.success == null) {
41133 this.success = new ArrayList<Subscriber>();
41134 }
41135 this.success.add(elem);
41136 }
41137
41138 public List<Subscriber> getSuccess() {
41139 return this.success;
41140 }
41141
41142 public listSubscribers_result setSuccess(List<Subscriber> success) {
41143 this.success = success;
41144 return this;
41145 }
41146
41147 public void unsetSuccess() {
41148 this.success = null;
41149 }
41150
41151
41152 public boolean isSetSuccess() {
41153 return this.success != null;
41154 }
41155
41156 public void setSuccessIsSet(boolean value) {
41157 if (!value) {
41158 this.success = null;
41159 }
41160 }
41161
41162 public CentralDogmaException getE() {
41163 return this.e;
41164 }
41165
41166 public listSubscribers_result setE(CentralDogmaException e) {
41167 this.e = e;
41168 return this;
41169 }
41170
41171 public void unsetE() {
41172 this.e = null;
41173 }
41174
41175
41176 public boolean isSetE() {
41177 return this.e != null;
41178 }
41179
41180 public void setEIsSet(boolean value) {
41181 if (!value) {
41182 this.e = null;
41183 }
41184 }
41185
41186 public void setFieldValue(_Fields field, Object value) {
41187 switch (field) {
41188 case SUCCESS:
41189 if (value == null) {
41190 unsetSuccess();
41191 } else {
41192 setSuccess((List<Subscriber>)value);
41193 }
41194 break;
41195
41196 case E:
41197 if (value == null) {
41198 unsetE();
41199 } else {
41200 setE((CentralDogmaException)value);
41201 }
41202 break;
41203
41204 }
41205 }
41206
41207 public Object getFieldValue(_Fields field) {
41208 switch (field) {
41209 case SUCCESS:
41210 return getSuccess();
41211
41212 case E:
41213 return getE();
41214
41215 }
41216 throw new IllegalStateException();
41217 }
41218
41219
41220 public boolean isSet(_Fields field) {
41221 if (field == null) {
41222 throw new IllegalArgumentException();
41223 }
41224
41225 switch (field) {
41226 case SUCCESS:
41227 return isSetSuccess();
41228 case E:
41229 return isSetE();
41230 }
41231 throw new IllegalStateException();
41232 }
41233
41234 @Override
41235 public boolean equals(Object that) {
41236 if (that == null)
41237 return false;
41238 if (that instanceof listSubscribers_result)
41239 return this.equals((listSubscribers_result)that);
41240 return false;
41241 }
41242
41243 public boolean equals(listSubscribers_result that) {
41244 if (that == null)
41245 return false;
41246
41247 boolean this_present_success = true && this.isSetSuccess();
41248 boolean that_present_success = true && that.isSetSuccess();
41249 if (this_present_success || that_present_success) {
41250 if (!(this_present_success && that_present_success))
41251 return false;
41252 if (!this.success.equals(that.success))
41253 return false;
41254 }
41255
41256 boolean this_present_e = true && this.isSetE();
41257 boolean that_present_e = true && that.isSetE();
41258 if (this_present_e || that_present_e) {
41259 if (!(this_present_e && that_present_e))
41260 return false;
41261 if (!this.e.equals(that.e))
41262 return false;
41263 }
41264
41265 return true;
41266 }
41267
41268 @Override
41269 public int hashCode() {
41270 List<Object> list = new ArrayList<Object>();
41271
41272 boolean present_success = true && (isSetSuccess());
41273 list.add(present_success);
41274 if (present_success)
41275 list.add(success);
41276
41277 boolean present_e = true && (isSetE());
41278 list.add(present_e);
41279 if (present_e)
41280 list.add(e);
41281
41282 return list.hashCode();
41283 }
41284
41285 @Override
41286 public int compareTo(listSubscribers_result other) {
41287 if (!getClass().equals(other.getClass())) {
41288 return getClass().getName().compareTo(other.getClass().getName());
41289 }
41290
41291 int lastComparison = 0;
41292
41293 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
41294 if (lastComparison != 0) {
41295 return lastComparison;
41296 }
41297 if (isSetSuccess()) {
41298 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
41299 if (lastComparison != 0) {
41300 return lastComparison;
41301 }
41302 }
41303 lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE());
41304 if (lastComparison != 0) {
41305 return lastComparison;
41306 }
41307 if (isSetE()) {
41308 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e);
41309 if (lastComparison != 0) {
41310 return lastComparison;
41311 }
41312 }
41313 return 0;
41314 }
41315
41316 public _Fields fieldForId(int fieldId) {
41317 return _Fields.findByThriftId(fieldId);
41318 }
41319
41320 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
41321 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
41322 }
41323
41324 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
41325 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
41326 }
41327
41328 @Override
41329 public String toString() {
41330 StringBuilder sb = new StringBuilder("listSubscribers_result(");
41331 boolean first = true;
41332
41333 sb.append("success:");
41334 if (this.success == null) {
41335 sb.append("null");
41336 } else {
41337 sb.append(this.success);
41338 }
41339 first = false;
41340 if (!first) sb.append(", ");
41341 sb.append("e:");
41342 if (this.e == null) {
41343 sb.append("null");
41344 } else {
41345 sb.append(this.e);
41346 }
41347 first = false;
41348 sb.append(")");
41349 return sb.toString();
41350 }
41351
41352 public void validate() throws org.apache.thrift.TException {
41353
41354
41355 }
41356
41357 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
41358 try {
41359 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
41360 } catch (org.apache.thrift.TException te) {
41361 throw new java.io.IOException(te);
41362 }
41363 }
41364
41365 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
41366 try {
41367 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
41368 } catch (org.apache.thrift.TException te) {
41369 throw new java.io.IOException(te);
41370 }
41371 }
41372
41373 private static class listSubscribers_resultStandardSchemeFactory implements SchemeFactory {
41374 public listSubscribers_resultStandardScheme getScheme() {
41375 return new listSubscribers_resultStandardScheme();
41376 }
41377 }
41378
41379 private static class listSubscribers_resultStandardScheme extends StandardScheme<listSubscribers_result> {
41380
41381 public void read(org.apache.thrift.protocol.TProtocol iprot, listSubscribers_result struct) throws org.apache.thrift.TException {
41382 org.apache.thrift.protocol.TField schemeField;
41383 iprot.readStructBegin();
41384 while (true)
41385 {
41386 schemeField = iprot.readFieldBegin();
41387 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
41388 break;
41389 }
41390 switch (schemeField.id) {
41391 case 0:
41392 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
41393 {
41394 org.apache.thrift.protocol.TList _list184 = iprot.readListBegin();
41395 struct.success = new ArrayList<Subscriber>(_list184.size);
41396 Subscriber _elem185;
41397 for (int _i186 = 0; _i186 < _list184.size; ++_i186)
41398 {
41399 _elem185 = new Subscriber();
41400 _elem185.read(iprot);
41401 struct.success.add(_elem185);
41402 }
41403 iprot.readListEnd();
41404 }
41405 struct.setSuccessIsSet(true);
41406 } else {
41407 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
41408 }
41409 break;
41410 case 1:
41411 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
41412 struct.e = new CentralDogmaException();
41413 struct.e.read(iprot);
41414 struct.setEIsSet(true);
41415 } else {
41416 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
41417 }
41418 break;
41419 default:
41420 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
41421 }
41422 iprot.readFieldEnd();
41423 }
41424 iprot.readStructEnd();
41425
41426
41427 struct.validate();
41428 }
41429
41430 public void write(org.apache.thrift.protocol.TProtocol oprot, listSubscribers_result struct) throws org.apache.thrift.TException {
41431 struct.validate();
41432
41433 oprot.writeStructBegin(STRUCT_DESC);
41434 if (struct.success != null) {
41435 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
41436 {
41437 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
41438 for (Subscriber _iter187 : struct.success)
41439 {
41440 _iter187.write(oprot);
41441 }
41442 oprot.writeListEnd();
41443 }
41444 oprot.writeFieldEnd();
41445 }
41446 if (struct.e != null) {
41447 oprot.writeFieldBegin(E_FIELD_DESC);
41448 struct.e.write(oprot);
41449 oprot.writeFieldEnd();
41450 }
41451 oprot.writeFieldStop();
41452 oprot.writeStructEnd();
41453 }
41454
41455 }
41456
41457 private static class listSubscribers_resultTupleSchemeFactory implements SchemeFactory {
41458 public listSubscribers_resultTupleScheme getScheme() {
41459 return new listSubscribers_resultTupleScheme();
41460 }
41461 }
41462
41463 private static class listSubscribers_resultTupleScheme extends TupleScheme<listSubscribers_result> {
41464
41465 @Override
41466 public void write(org.apache.thrift.protocol.TProtocol prot, listSubscribers_result struct) throws org.apache.thrift.TException {
41467 TTupleProtocol oprot = (TTupleProtocol) prot;
41468 BitSet optionals = new BitSet();
41469 if (struct.isSetSuccess()) {
41470 optionals.set(0);
41471 }
41472 if (struct.isSetE()) {
41473 optionals.set(1);
41474 }
41475 oprot.writeBitSet(optionals, 2);
41476 if (struct.isSetSuccess()) {
41477 {
41478 oprot.writeI32(struct.success.size());
41479 for (Subscriber _iter188 : struct.success)
41480 {
41481 _iter188.write(oprot);
41482 }
41483 }
41484 }
41485 if (struct.isSetE()) {
41486 struct.e.write(oprot);
41487 }
41488 }
41489
41490 @Override
41491 public void read(org.apache.thrift.protocol.TProtocol prot, listSubscribers_result struct) throws org.apache.thrift.TException {
41492 TTupleProtocol iprot = (TTupleProtocol) prot;
41493 BitSet incoming = iprot.readBitSet(2);
41494 if (incoming.get(0)) {
41495 {
41496 org.apache.thrift.protocol.TList _list189 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
41497 struct.success = new ArrayList<Subscriber>(_list189.size);
41498 Subscriber _elem190;
41499 for (int _i191 = 0; _i191 < _list189.size; ++_i191)
41500 {
41501 _elem190 = new Subscriber();
41502 _elem190.read(iprot);
41503 struct.success.add(_elem190);
41504 }
41505 }
41506 struct.setSuccessIsSet(true);
41507 }
41508 if (incoming.get(1)) {
41509 struct.e = new CentralDogmaException();
41510 struct.e.read(iprot);
41511 struct.setEIsSet(true);
41512 }
41513 }
41514 }
41515
41516 }
41517
41518 }